Taking a Z pack for a cold will have no effect. This is because a Z pack is a type of antibiotic that works for bacterial infections, not viral infections such as the cold. There are also some safety concerns about taking a Z pack for viral infections, so doing so should only occur under the supervision of a doctor.
Source: MedicalNewsToday.com