Will weed or alcohol consumed by the male cause birth defects

If the male smokes weed and drinks beer and wine everyday and the female gets pregnant, could the baby have birth defects or anything wrong with him/her because of the males lifestyle? Could the sperm be defective? I know it affects fertility but I'm asking if pregnancy occurs.