Q: Does Catholicism ban infertile men and women from getting married?
A: No. Infertile people can be married in the Catholic Church. Yesterday, I said infertility could affect a person's ability to get married, but 99.9% of the time, it does not.
Here's the one exception that I know about. Law #1098 says that a marriage is invalid, if Partner A deliberately deceives Partner B, by hiding some information that "can gravely disturb" the marriage.
I suspect this law is deliberately vague, so it can cover a wide variety of situations. Use your imagination to think of secrets that can ruin a marriage. Drug addictions, gambling, a history of violence, etc. Surely, there are situations where infertility falls under this law.
According to canon 1084 §3, sterility doesn't fall under this law. ...I think. I'm not a lawyer, and I'm uncertain about the legalese used here since one law cross-references another law.