Is it bad that I ghosted him?

My friend said he is dating someone else and I like him and I stopped texting him
Is it bad that I ghosted him?
Post Opinion