It depends on a form control you are using, however the input is not rendered anywhere by default so the script wouldn't be triggered.
Each form control also allows you to specify a validation, that could look for script tags and then display some validation error that also prevents the form from being submitted or you can do this in the code of a form control and throw some other error instead.