Is it safe to use a heating pad on my hip/groin area?

Honesty • Engaged with our miracle daughter after being told I could not get pregnant.
I injured my hip flexor a while back and it's been giving me a lot of discomfort lately. Would it be okay to use a heating pad or would it be too hard around the baby?