Is it considered flirting if a guy introduces himself?

Hi guys I’m a cashier and was ringing up a hot guy and chatting and I mentioned how I had homework and he asked what kind so I said nursing and then at the end of the conversation he asked my name and told me his, I think I got the vibe he’s interested but what do you guys think? Also wondering why he didn’t get my number like maybe he’s a regular and he will soon? Thoughts please

Is it considered flirting if a guy introduces himself?
Post Opinion