It's relatively quick and easy, but you'll lose any changes that have been made since the last backup.
Many viruses are user-specific, rather than device-specific. If you're still worried about having a virus, you may want to create a new user profile on your Mac.
Other steps you can take to get rid of a virus on a Mac