Does a urinary tract infection damage sperm or lessen your chances of conceiving a baby?

I wouldn't think so, but I've always been told not to have sex while being treated for a UTI because you want to keep the are as clean as possible. But I can't imagine it would harm the sperm or limit your chances of conceiving.