If the US was in a similar spot, (being invaded by a much larger enemy nation), then unfortunately, I would agree that we would have to do a similar policy here to what Ukraine has for men leaving the county right now.
You need every able body you can get to win a war for survival.