I used a digital camera and used usb port to put images into the computer that had virus in it.
Can camera get virus from computer and spread it to other computer when I use usb port again?
No, no way. Cameras are built on entirely different architecture. They have hardware that is built to integrate perfectly with the software, which is written uniquely for each camera. Furthermore, this might be over your head, but most digital camera use firmware, not software, which is very hardware specific. So unless the virus was written to attack your digital camera (not likely) it will only work on a computer. This is the same concept behind why Apple computers running OS X can't get most windows viruses. Totally different coding architecture/language.