Please help ease my mind

so last night as I was falling asleep I woke up to a sudden flinch like the ones you have in your dream where you’re falling from a building or something and sudden wake up all scared... is there any way that could affect my baby. I’m about 18 weeks & 4 days today. It felt like I was falling on my sleep and I woke up really scared my my heart was going to come out of my chest. I hope I didn’t scared my baby. I need someone to ease my mind. Has anyone gone through this and everything was okay.