Not faithful ?

I've been 3 yeary with my boyfiend on and off we've been 5 months doing really good when I first met him I never thought he would even notice me. Sometimes I think he's the love of my life but I keep on having this dirty thoughts about some ex friend with who I kinda had a sex and hang out relationship. Am I being unfaithful??? 😩😕