Hi, Welcome to eHealth forum!
Yes, smoking impairs sperm production, morphology and impairs sperm motility. It can also result in genetic changes in offsprings. If you want to father a child then you must quit smoking at least 3 months prior and get a semen analysis for confirmation.
Since a confirmed diagnosis cannot be given on net please discuss with your doctor once. Hope this helps. Take care!