Flying alongside? How close?
If you calculate as vectors relative to a fixed point, say the point on the ground that you were when the gun was fired; the projectile (you don’t say if it is an airgun, a shotgun, or a rifle) would have a vector towards the crow due to the projecting mechanism, plus a sideways vector due to the car.
So the projectile would travel sideways at the same rate as the car. That is, until the effect of air resistance has a material effect, which will slow its sideways motion until in the end it only retains its forward component. (in fact, there’s also a downwards component but let’s not overcomplicate)
If the crow is very close it’ll make no odds, aim straight at it. If it’s a long way away, you need to lead by enough to compensate for the effect of air resistance on the projectile, but this will be less than you’d need to lead by if you were stationary.
Whichever, it’d be an easier shot to swing in behind it, stand out of the sunroof and shoot it up the arse.