If I reboot my computer, will it clear any viruses or trojans and such from my computer?

If I reboot my computer (reinstall my operating system and pretty much starting new again), will it clear any viruses or trojans and such from my computer? I have a dell computer
28 answers 28