Actually it is quite common for people to make noises in their sleep.
It's nothing to do with ghosts, but scary dreams can make people call out - they don't know they are asleep but still makes sounds.
It is possible to control scary dreams by doing some mental exercises before sleeping. For example, imagining a really beautiful place, or telling yourself to wake up if the dream gets scary.