No longer! (Please, it's awful enough here without misinformation! :-) )
That was the law for a brief period years ago. Amazingly enough, the "Castle Law" was enacted during PeeWee Dukakis' reign!
If I recall correctly, Mass.Ch 131 General Laws, "Limitations on the Use of Deadly force":
"It shall be a defense that the shooter was in his own home..."