Yeah, you can form an army with them. Select units and hit V to form army and B to break/disband the army. There are also 2 buttons on the ui to do this with the mouse too.
If you have engineers working together they also sometimes automatically form an "army" so to speak, use B again to break that if you want/need to.