Yes, a non-citizen can join the military but there are certain restrictions.  You must be a legal immigrant with a green card and permanently residing in the US.  And know that federal law prohibits non-citizens from becoming commission or warrant officers.  Good luck.