Of course any server can become infected with a virus. It is always necessary to have latest security patches, anti-virus software and if possible firewall to protect any server. Your server can do many other functions also while it is being a fax server.
As a general rule, documents cannot contain viruses.
However your final comment is confusing and worrying me. I interpret that as meaning, 'companies that make fax software have told me that if I install their product my server will never get any viruses.' This is quite clearly utter rubbish. Fax software sends faxes. It does not protect your computer from viruses, malware or hackers.
Of course, it would be a perfectly ordinary thing for them to tell you that their software is not infected with viruses. Reputable software manufacturers do make a habit of distributing software which contains viruses etc. People would not buy their software if it did!!
Hope my advice helps. Please let me know if you feel you need more info.