yes just need a conversion kit, decide whether you want front wheel, rear wheel, or mid drive, buying the correct kit, suitable battery shape/size and doing it yourself. There's cadence sensing and torque sensing the latter is the better one.
Not hard I did fitted one
To be UK legal it has to be 250W and no faster than 15.5mph.