Yes. The virus can do that.
Were you able to identify the malware pop up: some name, statement, etc.. What did the pop-up look like?
You might try booting into safe mode - may or may not work.
The main thing you need to do is to run an anti-virus application on your computer.
You will need a bootable USB flash drive.
Here is a link that lists various options:
https://www.geckoandfly.com/2621/usb-bootable-dos-antivirus-for-unbootable-windows-xp-and-vista/
You can easily find additional information by googling "make bootable antivirus usb drive".