It won't keep you in the working class once you get in, but the military in general only attracts the children of working class families.
There is a certain socioeconomic boundary above which your kid joining the military is unimaginable, just simply not an option.