@gollum,
What do you mean by computer "code"?
Running a program you get over the internet is one of the most dangerous things you can do. Unless you know what you are doing, you can easily give the program permission to do whatever it wants.
So yes. If you are talking about running a program, it can bypass your virus scan whether it is received by thumbdrive, received over the internet or downloaded as a file attachment.