It is not possible that virus will be on Operating System, but when your system will be effected from viruses than may be chance that it can effect of operating system as well. So anti-virus software should be install in your system all the time.
Thanks
itezy