My PC running on windows 10 was recently infected with a virus/trojan. I inserted a usb to it at some point , and connected it to my MacBook for clean formatting (I was using my MacBook to wipe it in hopes of getting rid of the virus).
I did not transfer any files from the usb to my MacBook, I have transferred a pdf file from my MacBook to the USB.
Under these circumstances, can my MacBook be infected with a virus this way?