You can enable the Keep Figma auto layout option when creating a new page.
But we only keep the item that is fully AutoLayout recursively.
If there are some items that are not AutoLayout within the node, pxCode will still ungroup all items.