Yes, it can cause E.D. It can also cause unemployment, jail time, and acting like a moron in general.
Definitely, especially if you smoke very often. It acts as a depressant which can lower the sex drive. I'm not sure about long term erectile disfunction, but it can definitely cause short term, most noticeably when you are high