With our current level of technology, it seems unlikely. That's because the energy to change Earth's orbit in any significant way is much greater than the combined energy output of all countries.
According to Inside Energy, the world used 575 quadrillion Btu in 2015. That's roughly 5.75 $\times$ 1018 joules. The Earth has a mass of 6 $\times$ 1024 kg, so if all the energy we produced in 2015 was used to push the Earth in any direction, we would give it a ∆v of less than 0.000001 m/s. In laysman terms, we wouldn't see any difference in the shape of Earth's orbit. We would notice it burning hot around the equator for the effort, though.
As an alternative, we might try and capture another body to reverse the effects of whatever made the Earth go rogue again. But energy is really the currency of the universe, and this endeavor would cost even more energy than just pushing the Earth. We might extract some energy from extraterrestrial sources by making a small rocket go back and forth among gas giants - take some of their own kinetic energy. But that would take too long, and would be unfeasible once the Earth is already out of the solar system.
If you wish to prevent a body from making the Earth going rogue, consider that it would take at least a considerable planetary mass to cause the Earth to reach escape velocity regarding the Sun. You would have to deflect a planet coming at a speed greater than our own escape velocity (since it would be coming from outside the solar system), which would take even more energy. We just can't do it.
Of course, everything I said above is considering our current level of technology. In the far future, we might be able to avoid the inconvenience of being pushed out of the solar system by dodging incoming stars. We might do so with the aid of a stellar engine - check this awesome Kurzgesagt video.