Depends on the church.
Catholicism is far removed from actual biblical principles on many levels.
seems to me that it was rooted in scripture...
But I tell you that anyone who divorces his wife, except for sexual immorality, brings adultery upon her. And whoever marries a divorced woman commits adultery.
Now I tell you that whoever divorces his wife, except for sexual immorality, and marries another woman, commits adultery.
So He told them, "Whoever divorces his wife and marries another woman commits adultery against her.
Everyone who divorces his wife and marries another woman commits adultery, and he who marries a divorced woman commits adultery.
1 Corinthians 7:10-11
To the married I give this command (not I, but the Lord): A wife must not separate from her husband.
But if she does, she must remain unmarried or else be reconciled to her husband. And a husband must not divorce his wife.
For instance, a married woman is bound by law to her husband as long as he lives. But if her husband dies, she is released from the law of marriage.
So then, if she has sexual relations with another man while her husband is still alive, she is called an adulteress. But if her husband dies, she is released from that law and is not an adulteress if she marries another man.