Was this cheating?

So I read my boyfriend texts and I found out he sent a dirty joke to a friend and kept insisting on the joke that was about them two. He then said "don't u hate falling asleep when there's no one home? God it's so lonely I hate it" she said " why don't u call ur gf? he said oh I wish. I confronted him with this and he said he was just joking and didn't realize it was inappropriate. Was he trying to cheAt?
Was this cheating?
Add Opinion