did I do the right thing?!

Mandi • I’m a fashionable, artistic, nerd 😉
So this guy who I met awhile ago pro in high school, college or a dating site I can't remember excatly but anyways he claimed that him and his girlfriend are on break and he Sexting me pictures of his dick to me and I strongly believe that he is lying to me and stuff so I sent a message to his girlfriend/baby's mom The picture and the message that he sent me and explain to her what her so-called lover is sending me and possibly other women 😖 I feel so bad I feel like he's attempting to play me and playing his girlfriend at the same time mind you I never slept with him he's sending me mostly these dirty pictures and dirty comments to me 😡
Did I do the right thing telling his girlfriend about her dirt bag she calls a boyfriend