Will a router transfer virus to the other computer?
It will, if you (or the virus) tells it to. However, even if a
virus is transferred to another computer it will not run on that
computer unless you or another program executes it, or unless the
virus is able to exploit some security vulnerability in another
program in order to run. A router will not transfer viruses to
another computer on its own.