That'd only help if they'd retracted it before the storm hit.
Given that they didn't undertake other, "lesser" preparations before the storm hit...
Eh, there's some nuance there; the shipbuilder claims they didn't properly prepare and the crew say they did prepare. The limited evidence so far seems to side with the crew.
Old wooden sailing ships had masts that were somewhat retractable in that the upper spars could be removed and taken down on deck. But this isn't really practical with modern aluminum or carbon fiber masts. And it would complicate the rigging.
If you have an axe on board, all wooden masts are retractable in an emergency.