Yes, it’s not a big job but requires an accredited/qualified gas fitter to close off the existing gas supply. An electrician then just has to check that the existing wiring can cope with the higher electrical load. If it can, then the cost will be around £200 or so (south of England). We had this done when my very elderly mother moved into her flat last year. The gas hob was one of those flimsy types and so totally unsuitable in many ways for a very elderly person.
We had a ceramic hob fitted, which she is used to. If anyone thinks they will need a pacemaker, then be aware that you won’t be able to use an induction hob. She doesn’t have a pacemaker nevertheless, because if this issue, I decided that a ceramic hob would be better for her. Like an induction, it’s very easy to keep clean and looks great and is very easy to operate. The newer ceramics are also much quicker at heating up these days - although not as quick as induction.