Can infertility amg men be reversed?

I'm quite young and planning to start finasteride in a few years. One of the rare but reported side effects is erectile dysfunction (ED) and infertility. While these cases are uncommon, I’m wondering—what if I end up being one of the unfortunate ones? Can infertility caused by finasteride be reversed without surgery or invasive procedures? I couldn’t find a suitable platform to ask this question, so I’m posting it here. Anyone with a science background who can clarify my doubt?