Cough/cold medicine for almost 3 year old?

Do you use cough/cold medicine for your child at this age? Just curious. It’s confusing because they sell it but then if you google it they say not to. My daughters cough is making sleeping hard for her so that’s why I was wondering if I could give her something. The constant illness of daycare is the worst! (Note: she does not have covid, just a cold) TIA!