Is opiate action in cough due to sedation?

Is opiate action in cough due to sedation?