Load script with frame

Can I load script into the hosting window if I send them together with a turbo-frame?
I plan to use a head tag in the response sent by the server, and import just the behavior needed by the frame…
Thanks