Exception: ReferenceError: "document" is not defined. (<http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js>#613)
The quick answer is "no" and the long answer is "maybe"
The JS environment that YQL Execute provides does not have an implicit definition for "document". Neither does it provide the client side DOM API on the server side. The purpose of YQL Execute is to provide a familiar language to manuipulate, enhance and augment the webservice data rather than a browser environment. So other than the language we provide very few implicit or global objects.
If you absolutely must use JQuery and need the DOM model, then you'd have to include the necessary JS files. One example that comes to mind is http://github.com/thatcher/env-js/tree/master Again we havent tested it with our servers so YMMV.