Friend switch

I went to a bar and this guy started talking to me. He was nice but his friend was my type. His friend was hitting on me but wasn’t really because his friend started talking to me first. Is it wrong to talk to the friend anyway?