All of the material in the Solar System - sun and planets - formed from the same original cloud of atoms. This cloud itself included atoms generated by earlier generations of stars. The different elemental composition of the Sun and planets was partly driven by the physics of processes operating as the system matured.
Other than what's been blown off the sun as solar wind.
I mean, Earth didn't originate from material from the stella explosion of Sol.