If you are medically fit it doesn't matter one bit whether you smoke or not.
Every Dr, however, will quite rightly advise you give up the dreaded weed each time you attend a medical.
There are literally thousands of pilots out there who smoke regularly.
Rumour has it that some pilots also like the odd drink!!!!!!!!!!!!!