No, it doesn't. Back when I smoked I would blow smoke at them and they would just duck and find a different direction to attack.
I don't think the nicotine in a drag is high enough to do much. From what I remember, much higher concentrations were or are used in ant killer.