Is the most effective use of grenadiers to run up and throw grenades once the lines have started exchaning fire?

I tried to hide my grenadiers on the flanks and throw grenades as the enemy advanced the last distance but all the grenades explode harmlessly behind the enemy. Should wait until the enemy is stationary, yeah?