pulled a muscle?

when I was sleeping this morning, I think I pulled a muscle or something. the lower right side of my stomach has been hurting all day. has this happened to anyone else? I've been keeping a cold rag on the spot to make it feel better. I'm 38 weeks today.