Endometriosis

So I just was on the phone with my sister and she said she had endometriosis and told me that my mother told her she also had it. My mother knows my husband and I are trying and never told me this could be what's going on. Is it hereditary?