I would say, rather, that the sword was used as a sidearm rather than a primary weapon. Most soldiers would have been armed with a spear, lance, or other polearm -- weapons with greater reach and ability to penetrate armor.
But many of those soldiers would also have carried a sword as a backup weapon and for use at closer range.
But many of those soldiers would also have carried a sword as a backup weapon and for use at closer range.