Attaching a clone to a Y.Doc

After cloning a type, can I include it into a Y.Doc as a top-level type?

(edit: sorry, it was already answered here: Top-level sharedtype copy / clone / delete)