Do babies have nightmares?

I wasn't sure which thread to post this in. My baby will be completely asleep and then cry out just once or twice and when I go to check on her she will be completely asleep and won't cry at all. Is she just having a bad dream or what is this?