What would happen if we fired all nuclear missiles on earth at the sun?
quora.com
quora.com
There is no "lack of gravity" in outer space. We are all in a gravity field with contributions from every single piece of mass in the universe.
Provided that the rocket can escape earth's orbit and produce a delta v countering earth's 30 km/s velocity, then if the missile is stationary relative to the sun by then, it will gradually accelerate into the sun.