Trapped wind?

Rachel

I’m 27 weeks and twice over the past few weeks I’ve woken with abdominal pain near my ribs and back ache. Could this be trapped wind??