Smoking and ED problems

Can someone tell me if smoking is related to ED as well.? Recently I have observed that a small smoke of cigarette is spoiling the mood and I don’t get an errection even being with my lady..

But baam I can stay very hard for long if I were to take only beer or alcohol.

On weekends I do go around some shops where they smoke shisha and I don’t take shisha but on getting back home I feel I don’t get any boner .. seems like I’m sensitive to smokes and even vapes .

Does smoking or smoke cause ED .?

Regards