You can also add script tags wherever you want. They will execute when added to the DOM, but they won't be scoped.
You might be thinking of shadow DOM: if you clone your template into a ShadowRoot, then any included styles will be scoped to that ShadowRoot.
You can also add script tags wherever you want. They will execute when added to the DOM, but they won't be scoped.