Is there a known scam where people text you using your name to elicit a response?

Got a text from a random number after midnight saying “hey beautiful”. I responded in the morning asking who it was and they responded saying good morning [my name] and that they just wanted to say “have a good day and that you’re beautiful” I told them they have the wrong number, bc I was weirded out that they wouldn’t tell me their name.

My relative told me I should not have responded at all and that my number and name was probably sold and that it’s a scam to confirm if my number is active and with the person they are hoping to reach. Is this a common thing?

Never heard of it but it really weirded me out. Only thing that makes me think otherwise is that the initial message was after midnight last night and what they said.