Cheating

My boyfriend and I been together 2 years. The other day I found out that he cheated on me. He made a account to watch women twerk and text a woman hoping to receive nudes. He admitted that he has a problem and is participating in sex addict meetings and finding a therapist. I feel so broken and low. My heart loves him but my mind is a wreck. Is it worth trying to work it out or should I leave?