Pain under ribs?

Katie
Twice today I've gotten a rather sudden sharp pain, it's happening just under my ribcage. I'm only 12 weeks (tomorrow) so I know the baby isn't anywhere near there yet. So I'm not worried about the baby, but I am curious if this is pregnacy related?