Does a imperforate anus lead to male infertility?

No. If you were successfully treated as a newborn for imperforate anus, this is not the cause of any fertility troubles you may be having.