Welcome to Healthcaremagic.
Well , I too would consider it as an unexpected event.There would be no relation between the surgery and the cough
unless you were put on general anaesthesia
during surgery where you will be intubated which can cause some changes in the larynx
and trachea which can cause problems or treat them.
Wish you good health.