Locked my computer using System Restore, will that remove virus?

I have locked my computer using SYSTEM RESTORE. But will that completely remove the virus from my computer?

 

 

[edit: Clarified subject.]