They did not condemn contraception, per se. They condemned certain methods of contraception and they also chastized marriages which intentionally chose not to have children.
So marriages where a couple intentionally chooses not to have a child are valid?