The documentation indicates that this should be possible: "it just posts a quit message to the main queue".
But on OS/X, at least, this results in an assertion failure: JUCE Assertion failure in juce_mac_MessageManager.mm:242
This was easily fixed by just posting a CallbackMessage that called ApplicationBase::quit(), but you might consider changing either the documentation or the code...