Is it safe to have a cough after heart bypass surgery?

Yes, but. It hurts. Hold your chest with a pillow when you cough. If you have fever or sputum that is changing color or bloody, call your surgeon.
No. Coughing after heart surgery can be good to clear your lungs but if you have phlegm it may be a sign of bronchitis or pneumonia.