For new homes absolutely. In the UK gas boilers are the norm and every new home should have a heat pump instead.
But retrofitting requires a lot of work - replacing radiators with much larger ones, maybe ripping out pipes, and for ground source digging up the garden / street.