For years, women have been warned not to smoke while pregnant, and to stay away from other people who were smoking to avoid breathing in second-hand smoke.