Hi,
Believe that this is generally treated as part of the charge phase.
Nothing to stop you firing for a turn or more first and then subsequently charging in the next turn.
If the troops are British it is also helpful that they get a plus one for firing and a plus 1 for melee in line!
Cheers,
Paul