Yes, resetting your PC will help to remove the infection infected by the malware from your system. After that, install antivirus software and do a full system scan to ensure the system is free of any additional risks.