You know, and increase risk of others getting the illness and such?
It doesn't square well against the notion of Right Action (or Right Conduct) on the Noble Eightfold Path.
The practitioner should train oneself to be morally upright in one's activities, not acting in ways that would be corrupt or bring harm to oneself or to others. (source) (emphasis added)
If going to work while ill could cause others to become ill, that would be bringing harm to others. So it's probably not a good idea.