Was ghosting the right thing?

I decided that this guy I was seeing was treating me like crap and only wanted sex, but then I found out he has a girlfriend (god bless social media) it makes me sick that I was a mistress.
He texts me for pics and when he did I finally didn't text him back.
I could've said that this fck friend situation isn't working but why tell him? Was this a good thing to just leave him be?
Was ghosting the right thing?
Add Opinion