While there is plenty of wiggle room for building your soldiers however you so feel, there is certainly the ideal way to have your squad function and an ideal place and role for every class to fill.
X-COM as a series is grounded in preparation and squad management, knowing your abilities, and planning for the enemy’s actions ahead of time.