No, if there is a hard shoulder, it may be advisable to use it while being overtaken. However, you are not required to drive out onto the hard shoulder, as long as it is not required to make way for an emergency vehicle.
Do not use the hard shoulder in darkness or when visibility is reduced or obscured. It is prohibited to use the hard shoulder on motorways and clearways.