Some units can only be placed in the back line, such as archers, scouts, sword cavalries, and spear cavalries. All other units are allowed in the front line.
The Sort and Filter function in squad building can help to differentiate between “front line allowed” and “back line only” units.