Cough medicine

Has anyone given their baby cough medicine? If so, what brand? Did it work well? I usually wouldn’t want to give him anything at all, but his cough is pretty bad. I really don’t want to take him to the ped. because they are going to tell me it’s only a cold and needs to run it’s course.