you have some good questions. Stars are mostly hydrogen and helium. Heavier elements up to iron are created in heavy stars as they age. Finally heavy stars explode in a super nova and create the elements beyond iron. So yes old stars create all the elements which make rocks, asteroids, comets, and planets. We are made of star stuff.
Billyuns and billyuns ...