Crying almost screaming from nap

My baby just woke up from her nap crying almost screaming. I was still holding her so I immediately comforted her. But her eyes opened and she looked surprised. Idk why it made me teary 😢 do any of ur babies do this? Could she be having nightmares?