pain 21weeks pregnant

Lindsay
I have really Bad cramping pain and backache I'm using a hot water bottle for my back could I use it near my bump to ease the pain?