Does past drug use affect a pregnancy?

My bf is a recovering drug addict.

I didn’t know when he was actively using. But he used for about 6 years.

We are starting to talk about marriage and having kids one day. But he told me because of his drug use, that it’s possible he might not even be able to have kids. I researched it, and found out that it’s true. I never thought about it before.

I’m sure we will still try to have kids but does his past drug use affect a pregnancy negatively ? He’s clean now. But could anything go wrong ??

(Btw just want to note that I’m not a drug addict and never used. )

Thanks for the advice