Heating pad

Safe to sleep on a heating pad?? (For my terrible back pain) -I’m almost 27 weeks