Feeling anxious

Will feeling anxious and nervous affect baby? Been having this nervous tummy ache for about 3 days now will it affect baby?