I mean, the thing is, artillery is generally pretty inaccurate up until a pretty late point. Even in the US Civil War, explosive shot was the exception, not the norm, and if you hit the unit you were aiming for, much less aiming for any particular rank or file, it was considered a good shot.
Famously, General Sedgewick exposed himself under artillery fire for a prolonged period, reassuring his men that the Confederate artillery couldn't hit an elephant at the distance they were at.
... he was killed shortly thereafter, but by a hidden sharpshooter, not the artillery.