I indeed do this sometimes, if they are the last needed to complete a quest...
But this wouldn't be harmed, if there is shown a train button for every unit type, everytime you visit the barracks (if there is a free training slot).
Edit: There would be a need to adjust the bottom bar on mouse movement.