Can I run *any* JavaScript with executeScript?

In the (executeScript, execute script, Arrays - Selenium IDE Commands Tutorial) [documentation] for executescript, it lists “Useful Javascript snippets.” should I infer from the word “useful“ that any JavaScript code whatsoever could be run from within ui.vision?

Anything that Chrome’s V8 engine or Firefox’s SpiderMonkey engine can run