Losing weight

Has anyone struggled to get pregnant and then lost some weight and it helped?