Just based on the very little information you provided, I don't think anyone can tell you with confidence if you were talking to real tech support or not.
It really depends on how you got in touch with them.
Did you go through the Windows preinstalled Get Help app, or the Microsoft official support page https://support.microsoft.com/contactus
If you didn't go through those established official channels, then most likely you were talking to scammer.
Did you receive a pop up saying your computer is at risk and you should contact support - that's a well known IT support scam. The pop up itself is some website ads with fake content to create a non-existing issue, so that users would be scared enough to call the number listed, but it merely is just a pop up.
Provide a bit more context, and what you ended up doing with this support person. Did you let them remote into your computer or install anything they asked, so that I can assess damage done and let you know what you should do next.