My Uncle got married and he and his wife could not have children. I have a cousin who also has that in her marriage. Nobody annulled their marriages, it was Catholic weddings.

Of course, nothing can prevent them from getting married at city hall, Las Vegas, on a boat, another religion, etc. There are other ways to get married.