Can I modify the document outside the current edit context?

Not at this time. You can read the entire document, but only those objects in the current edit context can be modified. If you try, an error will be raised.