Would you become friends with someone that’s in a relationship?

I have been texting this guy for a few months I assumed he was single until i started noticing signs of him being in a relationship. I asked if he was single he avoided the question and a week later I blocked him. He contacted me again with a second phone asking why I blocked him I told him I didn’t want to talk to someone who’s in a relationship he told me he was single but if he was in a relationship it shouldn’t matter because we didn’t have any sexual conversation and we didn’t meet up yet. Am I wrong for cutting him off I have guy friends that are in relationship but they were single when we met.
Would you become friends with someone that’s in a relationship?
Post Opinion