Can you set the layoutAlign or layoutGrow properties of a frame node if it does not have a parent?

I have a function that modifies the layout properties of a frame node (after it has already been appended to it’s parent). I was wondering, do we need to append the frame first, or could we first edit the layout properties and append the frame after all the layout properties have been changed?