Sure, but it doesn’t say you have to be in a militia. It doesn’t say the being a militia is a precondition for the right, only the justification they listed. You could argue that it’s not necessary anymore and I’d agree, but the 2nd does not state membership in a militia as a pre condition to the right to bear arms.