Antibiotics are not effective against viral infections, which are the most common cause of coughs in children. They should only be used if a bacterial infection is confirmed by a healthcare provider. Misuse of antibiotics can lead to antibiotic resistance and should be avoided.