The shell does not care for which files you set the execute permissions.
If execute is set, you can attempt to run a file as if it were a program. It is up to you to only set Execute on a valid script file. When you get a copy of a script from another person, do not forget to set the Execute permission. The script will not run until you do so.