Not necessarily:
https://onlinelibrary.wiley.com/doi/full/10.2164/jandrol.109.009381
"In summary, a 1‐mg dose of finasteride does not appear to adversely affect spermatogenesis. In addition, the level present in the ejaculate of patients taking 1 mg appears to be negligible. Thus, there does not appear to be any need to stop 1 mg of finasteride in those patients trying to conceive or in those whose partners are pregnant."
As always, talk to your doctor.