Oh that’s right. The Catholic Church revised that belief.
The Catholic Church has never had a doctrine or dogma against having marital intercourse at times of natural infertility, e.g. during the infertile periods of the female cycle, during pregnancy, during the post-lactation anovulatory period, after menopause, or when one or both of the married couple are naturally infertile.