No, it’s not dangerous, but it could leave your microwave smelling soapy! Some types of soap expand in the microwave, so take care to cut them into small pieces and keep them covered.