Yes ofcourse.
Lynx is a browser, and the script is PHP, so if you want to get the output of the script, you will have tomake the browser request the page from the script.
If you get an error then you must have mae a typo somewhere. It works fine on my Linux system.