Is it possible to store a complete script in a secret?

Hello.

I have a piece of code that filters a table in a page when it loads. Altough it is not visible to my page users, my team can see the code in the Code editor of the site. I am a little worried that one of my collegues could modify it by accident. Is it possible to put this full code in a Secret? Or is it limited to small pieces of information such as keys or strings?

Thanks