Joseph has vision where he learns God created worlds that are inhabited.
Vision, 16 February 1832 [D&C 76], 3, The Joseph Smith Papers website, accessed February 17, 2023
we heard the voice bearing reccord that he is the only begotten of the Father that by him and through him and of him the worlds are made and were created and the inhabitants thereof are begotten sons and daughters unto God