am I wrong?

When anyone via social media tries flirting I automatically just tell them I'm married because telling them I have a boyfriend doesn't work. Is that wrong?