Of course you can work out in a mask. It's far from ideal but it doesn't actually reduce your oxygen intake. As pointed, out Olympians did it. Many high school athletic programs have been requiring masks in competition.
But I certainly hope we are getting close to the point where these will no longer be required onboard. For me, it's not a vacation if I have to wear a mask much of the time.