It can also be used as an exclamation of surprise or distress, similar to "Oh my god!" or "Help me!".