+1 on getting it checked out.

It is possible to break a rib coughing. I've known two people who've done that when they've had pneumonia. Coughing and fatigue were their main symptoms (before they broke the ribs...).