Did losing weight help you get pregnant?

Currently, I weight 267 and my heaviest weight was 273. I went to the doctor for an annual check up and he said they losing would help boost my fertility. Has anyone lost weight and had an easier time falling pregnant?