It very much depends on the historical context. Your average conscripted peasant during the middle ages would be arriving as part of their lord’s retinue. If they broke rank or ran away from battle, everyone including their parents, siblings, neighbors, and potential lovers would hear about it back home (and never let them live it down). Most conscripts at that time fought alongside their fellow villagers and farmers, not random professional soldiers. They maintained unit cohesion through social pressure rather than training and drills.