Help please

I've just found out I'm 2 - 3 weeks pregnant but I've been drinking and smoking. Is this going to affect my pregnancy?