Would a guy flirt with another girl to get my attention?

ya it basically says it but the guy I like started flirting with my good friend while I was talking to him. he just turned around when I was about to ask him something and started flirting with her. she was shocked and stared at me he, was talking pretty loud so idk, what do you think?
Would a guy flirt with another girl to get my attention?
Post Opinion