Friends or no??

I recently made a friend who happened to tell me he also likes me and I have a bf but he knows about him.. Thing is even tho he said he's ok with just being friends he still flirts with me.. Do you think that we can really stay friends? Also just because of my personality and the way I am with him I done times flirt back when I don't mean to..