You can't possess any firearms or even ammunition components in MA without a licence. You have 60 days to get your license. You must complete a MA approved safety course with a MA state police approved trainer.
There are 2 licenses, LTC and FID. LTC is for any handguns and 'high capacity' rifles and shotguns. FID is for 'low capacity' rifles and shotguns. MA has their own definitions in general, an example is a Ruger 10/22 is considered high capacity.
If this is in the near future, understand that the state has ordered all shops to close, and instructed all approved trainers that no classes are to be conducted. Many towns are not currently processing new licenses as well.
MA has safe storage rules, your wife would need a license as well if she has access.
MA follows the federal 1994 ban more or less. MA gun laws are a convoluted mess, and the MA AG likes to make them up as she pleases.
There is a handgun roster, it only applies to dealer sales.
This forum is pretty dead, I would recommend reading through the Northeast Shooters forum for more info. I tried to cover just the basics.
Since this is temporary: If living in CT is an option, CTs gun laws are a lot simpler. CT does not require a license for simple possession in your home. The CT forum is also very active here. You could also apply for a CT non-resident pistol permit now, and simply change the address once you move.