Yes, it is possible to replace a gas boiler with an electric boiler. The installation process is often simpler and safer, as there is no flue or gas supply involved. However, it is important to ensure that your home’s electrical system can handle the increased load, and you should consult a qualified engineer before making the switch.