Cough medication usually are sedative.. so maybe child will be drowsy and have reduced feeding. This is normal.
Any other issues like fast breathing or anything??
Please don't worry. Please feed him well and give plenty of fluids.
Next Steps
If any breathing issues or extreme sleepiness, vomiting or any other abnormalities, please visit the doctor