Does smoking/drinking affect taking contraceptive pills in anyway?

Does it stop it from working or does it just cause problems?