Solar power is a way of harnessing the energy from the sun's rays. This energy is converted into electricity using solar panels.
So, to answer your question directly, yes, solar power comes from the sun.