Heating pads

Is it safe to use a heating pad when pregnant. I have one that you plug in and one that I can throw in the microwave. Should I use one over the other. My back and hips are killing me today.