Simpler way is to use the distance function.
Event:
System --> Compare two values --> distance(player.X, player.Y, ghost.X, ghost.Y) < 500
Action:
Play Audio "oOOOoOH.mp3" or whatever that is.
The distance function above measures the distance in pixels, and you can change that 500 to how much closer you want it to activate the sound.