It is extremely important to never give human medication to your cat without consulting a veterinarian. Cats metabolize medications differently than humans, and what might be a simple cough drop for us could be dangerous or even fatal for your feline friend.
If your cat is coughing, please contact your vet for advice. They can assess the situation and recommend the appropriate course of action, which might include medication specifically designed for cats.