viruses are made to work with different OS'es, and linux is practically virus-free.
this, in fact, is one of the best schemes of how to bring broken OS back to life - boot the other OS.
however, to make it hassle-free, you need to install them in different paritions and linux must be installed last, because windows bootloader wouldn't find it, while linux (newer ones preferred) can find windows.