Love and sex

So I'm in asituation here, it's this guy I like and I feel like he likes me to but he use to hate one of my girlfriends we fell of as we got older we are no longer friends, I feel
Like I'm violating the girl code if I continue to hang out with him and no we haven't had sex