While the planets in our Solar System do orbit the Sun, there are exoplanets (planets outside of our Solar System) that orbit other stars.
There are also rogue planets which are not gravitationally bound to any star and wander through space.