heating pad?

I think I pulled something my back is killing me, is it okay to use a heating pad on my back? I'm currently 22+2