NO. They didn’t. Microsoft is not ever going to call you on the phone.
What you did get, was a call from some wise-guys that said “We see that your computer is infected, and we can clean it up for you. It will cost $170.00 (or some other amount.)
WHAT TO DO:
Hang up the phone. Block the number if you can. That’s all.