The nuclei of atoms that make up a newborn baby (excluding hydrogen) were indeed created in ancient stars through stellar nucleosynthesis. Most elements heavier than hydrogen and helium were formed in the cores of stars that exploded billions of years ago. These atoms were then recycled through the universe and eventually became part of our solar system and our bodies.