Of course, but with a heat pump you get the combo of lower demand and much higher efficiency. In Germany for example due to high electricity prices you really need COP>3 or so to beat fossil fuel for heating economically.