Pain in the right side of rib cage, need to be checked clinically by doctor. As such it can be due to these causes -1. Pain from gall bladder can occur in right side of chest. 2. Liver inflammation, can be felt on right side, Lastly it may be due to Costochondritis.,this is the inflammation of the cartilage that joins the ribs to the chest bone .
Yes, this can be related with gall bladder stone.
To make a diagnose clinical checkup, Ultrasound of whole abdomen, blood tests are to be done. Please get it checked by doctor soon.