Sore right rib out of nowhere

About 5 days ago I noticed my right rib was getting a little tender on the side down under my armpit area near the side of my breast. That night I woke up with acid reflux which sent me into a coughing fit and boyyy did that not feel good where that tender spot was on my ribs. And ever sense then it’s felt like it’s bruised now. It hurts when I press on it and hurts when I sit up or turn over in the bed. Is this from pregnancy?? It just randomly started out of nowhere, I’m 32 weeks today.