Heating pad?

OK ladies I'm 19 1/2 weeks and my lower pelvic area and my back are cramping up like no other its so painful I want to cry no spotting or anything just normal cramping I'm sure its because of constipation... Can I use a heating pad to warm things up a little bit? And relive some pain or will it hurt the baby?