If I was an alien engineer trying to aim something at a moving planet light years away while also shooting it at that speed and having a huge number of things affect it's trajectory via gravity, I'd make it course-correct during flight.
You can go a step further. Use a computer vision algorithm to find planets, and then do some spectroscopy to identify planets with water in their atmosphere. Course correct to aim at one of those planets
"The navigation stage was released about Jupiter, as planned. They will ask for centuries who threw that rock, bhahaharaH!"