An occasional cough is absolutely normal, they'll get hay or other stuff suck in their haste of getting the feed down. I don't know why you wormed him - did he show other signs of worm infestation?
However if you are concerned about the possibility of pasteurella/pneumonia you can reduce the chances of him getting it by vaccinating with Ovipast.