Short answer: no.
JavaScript runs entirely inside the client's (visitor's) browser application (IF they have it enabled). PHP is run entirely on the server before the visitor's browser displays it.
Long answer: sort of. :-)
With some "fancy" footwork, you can set the value of a hidden field to "true" or "false" and submit the form with formname.submit()
Hope that gives you (some) direction!