Custody

I was told that in NC if you could prove that you’re spouse is unfaithful that you could get custody of children. I was wondering if this was a true statement

Untrue unless their adultery somehow put the kids in imminent danger.