How else would they be done?
From what little I understand, I thought it was not uncommon for actors to respeak many lines of text that they say in the movie again in a recording studio during post production. Including the live actors.
<{POST_SNAPBACK}>
For cartoons and CG films like Shrek, the voices are done before the animation. Of course this doesnt preclude post prod "touch-up" work.