Does the Modem Can be Infected by Virus?

I access the internet using a modem when downloading an application from the Internet the application contain ramnit virus, I immediately stopped accessing the internet and unplug the modem from the PC.
When I would access the internet via laptop with the same modem the modem will not function properly.
Does the modem can be infected by virus?
