Is the sun a planet?

No, it's not a planet. It is a star. The Sun is a medium-sized yellow star.