Sure, but a rogue planet would be far, far less disruptive than a star coming near enough to us to affect the Solar System. Such stellar flybys, according to a paper I linked in a previous comment, occur every ~23M years, and are, indeed, expected to act as a destabilizing force on the Solar System over long periods of time.