Was this wrong of me?

So I am seeing a guy in work who I should not be with because its against the rules. I thought his friend had a feeling that we were together so I was messaging him and I asked if the friend was bringing me out. I said it to deflect. Was this wrong of me to do? I told the guy Im seeing about it and I told him that I just said it as deflection cause noone can know that me and this guy are seeing eachother and we thought his friend had a clue.

Was this wrong of me?
Post Opinion