Yes but they also give out heat
Energy from electricity costs about four times as much as energy from gas.
There is no reason to fit tiny electric heaters in your house, expensive to run, which have no thermostats and are turned on and off regardless of temperature, and which serve only to warm the ceiling.