The pattern held even after researchers accounted for whether the pregnant woman herself had the habit.