Obviously not read starship troopers thet make it very clear that anyone can serve and will be accommodated. And they make it very clear that being in the military isn’t the only way to serve.
It’s just above providing for your country and earning the right to vote.