It's a childish word, and while it's not considered polite to use it in formal situations, it's generally understood and accepted in casual conversation.
It's also sometimes used in a humorous way to describe something that's unpleasant or disgusting, but not literally mucus.