Yes, and this is a major problem.
Some games have AIs that just group units some distance away from the targeted base and commence the attack from there.
I know for certain Brood War does this, but it's buggy. Units will still sometimes ignore the player's units while going to their grouping spot. Other times, the grouping spot will be inside the enemy base, so the units will be in a single line anyway.
It's not easy to code good grouping without the AI actively using formations. In the older alphas, AI would have grouped his units properly because formations were hard-coded.
I mean, the longer the march, the worse this problem becomes. But anyway, the player won't be affected by it. I forgot to mention that the AI is the one affected, AI controlled troops are simply walking into their deaths in a single file.