Could upper right quadrant pain and bloating be caused by endometriosis?

Possible, not likely. Endometriosis can cause a multitude of symptoms, but those are usually in the pelvis. The symptoms you describe would more likely be related to the liver, gall bladder, and the bowel.