You may need to use an antibiotic is there is a risk of developing a secondary infection as a result of a temporary weakening of the immune system due to the virus. This usually isn’t necessary, you can kick the virus with diet, liquids and rest.
Unless you’re talking serious potentially lethal viruses... very different story, hiv would require strong antiviral drugs and monitoring.