No, this won't work, the objects themselves need to be set as global.
Alternatively, just re-create them on start of another layout. You can do this:
unpin them, save their states (Object.AsJSON) in a pair of string variables. On start of layout create two new objects, load their states from JSON, pin.
(You need to unpin/pin, because PinnedUID in JSON string will not match the UID of newly created object)