Possible ligament pain?

I woke up and my right side hurts like up and a little bit around to the back , almost to like the middle of my torso from my hip. Could that be ligament pain or maybe I pulled something while I was asleep ??