Weight loss and conceiving are they related?

Did losing weight help you get pregnant? To explain better were you ttc for a while then decided to lose weight and finally got your bfp after losing weight?