In theory yes.it should not be a problem the plugs they use normaly on the smoke alarms make it hard to touch the live wires when removing
apart from the plug you should have no wires to touch there
In practice the wires can pull out of the plugs and leave exposed wires