Need a suggestion

Hi friends. If this sound silly pls ignore. If mom is stressed out or sad during her pregnancy. Does that affect the baby in the womb. Will the baby be mood out aftrr birth? Does the moms environmen affects unborn baby