Can exercise affect fertility?

Shruti
What types of exercise are best for fertility and how much physical activity is recommended?