It depends on what kind of bad habits, if it's just gluttony or leg shaking or whimpering, it won't be passed on to the baby, these little habits have no effect on the baby at all. Because the baby is still small in your stomach, although he can hear the sound, also can do simple thinking, also can feel some of the mother's actions, but those actions and information for him is vague, is not clear, so if you just have these small actions on the bad habits, bad habits, is not worried about affecting the child. It's just that when your child grows up and starts to learn about the people and things around him, you have to start being careful, because as a baby, your child is curious about the world and learns best and moves best.
At this time if you still have any small faults and actions, it is very likely that it will affect your children and make them learn from the past. So although now your bad habits will not be infected to the baby, but I suggest that you start from now to change their own little faults, so as not to later this fault to stay to change, but instead of being your child to learn, in the end, or to his influence.
But if it's a more serious problem, such as smoking and drinking, then there's no doubt that it will definitely have an effect on your baby. Alcohol and nicotine, as well as other harmful substances, will pass through your blood and tissues into the placenta, and then into your baby's body, directly causing harm to your baby. So if you are in the habit of smoking and drinking, you must change it during your pregnancy or else the damage to your baby's body will be huge. Your baby may even become mentally challenged or even develop deformities as a result.
If it is a bad habit of losing your temper, or becoming acerbic, I urge you to also try to restrain yourself, because although these problems will not be infected to the baby, but your temper will also affect the baby, you know, the baby's greatest perception of the outside world is you, you do what they know exactly, and the same will have a huge impact on them.