Can certain medications affect fertility?

Girly
What types of medications can impact fertility levels? Are there alternative medications that can be used instead when trying to conceive?