Super long period cycle

My period cycle varies. 39 days, 41, 51 days, but usually its 41. Is there anyone here who experienced this? My doc said i have endometrium. Im scared. I want to have a baby.