Your question is banal. Pick up a book on cosmology or look up...

  1. 23,795 Posts.
    Your question is banal. Pick up a book on cosmology or look up planet formation online, gas clouds coalescing under gravity forming stars, accretion disks forming planets, etc, where there are many examples, and our own solar system being one of countless solar systems in the galaxy and the universe.
 
arrow-down-2 Created with Sketch. arrow-down-2 Created with Sketch.