Taking drugs and alcohol before implantation likely doesn’t affect the fetus, but it can affect the pregnancy. It can cause difficulty getting pregnant, infertility, and even lead to miscarriage. Women who want to get pregnant should cease drug use (including unsafe legal drugs) for three to six months before trying to conceive (source).