Yes, you can. From the Form Editor, go to the Advanced → Form tab.
Afterward, tick the option Add a JS script to your form. Paste the script URL in the text box that shows up. Make sure to use a reliable service to host your script files.
If you need to track the number of users who submitted your form, use the option below – Add a JS script to the Thank You page of your form.