May be,but just coughing made ur rib to pop out is weird,may be u must have injured unknowingly.Sometimes it can be muscle cramps
too.Consult your doctor because it need to be checked physically and then the right treatment can be instituted.Also sometimes may be due to gall bladder
pain.If an ultrasound
is done you can rule out any gallbladder
or liver pathology.