Legal yes, protected by the constitution without constraint no.
Both the use of Arms being man portable weapons and militia makes a very clear distinction.