I would rather suggest you to take steam inhalation three times a day with gargling. Cough syrup usually dries the expectorant so there will be sudden relief but then the dry coughing might occur again.
Next Steps
Steam inhalation thrice a day
Gargling
Intake of mild hot water.
Health Tips
Try avoiding cough syrup as much as possible.