Inserting code into headers, body and footer

Am I correct in thinking that placing an imbed box in the location of one of the above, and making sure it’s on a layer that is below most of the layers will imbed that code?
And can one group that imbed layer with another layer.

@Woodrow,The Embed container can be on any level, you choose which one. And yes you can group an Embed.