Some smokers develop a cough
after quitting smoking
as the lung tries to expel out the tar deposited in it. It may last for a a couple of months. So please do not worry about the worsening of the cough after quitting smoking. Remain off cigarettes and see your doctor again so that he can assess you for the presence of any infection. He may suggest a change of medication.