In California there's ways to do it, but you end up with a hacked version of one without a detachable magazine; Or without a pistol grip.
I'm not sure about in MA (In fact, I think MA is pretty strict on gun laws too), but in about 45 states they're completely legal in semi-automatic form. No state has an easy process to procure a fully automatic weapon of any kind.