I wager so. Many commercial video games have plaintext script files buried in their installations. I am not in the habit of reading licenses very carefully, but I suspect more than a few of those do not lay out the right to view or modify those files. (Although 'modders' do anyway of course.)
Software licenses which allow you to view the code but not to modify it are fairly common.
Typically, software licenses grant none of these rights.
I can't think of any where you can't view it, but there are several licenses that allow you to view but not modify.
Microsoft is in the habit of letting development partners view their source but not publish or modify it, and then there's software like UW Pico that have licenses that allow viewing by the general public but not modification.
Are there any software licenses where the source code is provided but you are prohibited to view or modify it?