Doctors sometimes prescribe antibiotics when we have a viral cold if we also get a secondary bacterial infection along with the viral cold. Even then, the antibiotic will work only against the bacterial part of the infection, not the viral infection.