'Ay ceramble"

Hi there,
I never quite sure about this expression "Ay caramble"(it may be spelled differently!).
Is it an expression used to indicate the reaction to suprises or "Oh my god"?

Thanks

Replies