Endometriosis passed down through genetics

Can endometriosis be passed down through genetics? or did any of the women here get endo through genetics? my grandmother had endometriosis for 35 years straight and only went away when she started menopause, and my mother used to have uterine fibroids but it was also removed through a hysterectomy.

Medical anxiety is the worst, im still a minor and i dont think the pain/symptoms i've been feeling isnt PMS anymore... i've talked to my grandmother about it, but i dont want to self diagnose so im asking to be educated or advised here!