Cheating in a marriage

Can you work it out after a spouse has cheated?