Yes, it is perfectly safe to cook gem squash in the microwave, provided you cut them in half first. If you try to cook them whole, the internal pressure may build up inside the squash and cause them to explode.