A very good move to hang up the call! No, it is definitely not legitimate! Had you stayed in the call, things could have gone very bad.
Most likely this was a popup from a web site you should not have visited. Find all browser windows and close them down. It is also good to use Task Manager to delete any remaining processes. Or simply reboot the computer.
It also a good idea to run a full scan with your anti-virus tool.