No. A carbon monoxide alarm is a useful additional warning device, but it does not replace correct installation, servicing, ventilation or professional testing of a gas heater. The appliance still needs to be maintained and checked by a qualified gasfitter.