Yes! Widgets do actually have a Z-order associated with them. If the Z-order is not set manually, the last widget spawned will be on top.

This is for slots on a canvas however, if you overlay new widgets on top of each other they go by order of last added.