The short answer is: yes
PHP can in principle be used to create applications that are not web based. When you install PHP on a Linux system you can run any PHP script just by typing
The output is then written to the console. I sometimes use this for debugging purposes.
PHP can even be compiled with bindings to libraries like NCurses or Newt, which allow to create a simple user interface.