I'd ask your doctor. I told mine about my pain and she sent me over to orthopedics and I had to get a shot of steroids. My pain was around the same area. I couldn't lay on either side without it hurting all night. Now I feel soooo much better and no pain. It's safe too and I'm about 20 weeks. But some people say you need to up your water intake as well.
How far along are you? My hips hurt the whole last month with my daughter. I was just so heavy right there and sleeping on my side didn't help any! If you're pretty far along, try sleeping in a recliner rather than flat on your sides.