Dieting

Hi 
I am on dieting now to reduce weight.
I am not planning for the baby right now I had a missed misscarrige last year. Just wanted to ask that does the diet has any affect on getting pregnant in the future??