When you request a JSP, the server renders html according to your JSP code, this happens before the result is sent to your browser.
When the result html reach your browser, the browser may execute Javascript code according to events. This happens on your desktop client machine.
So, unless you are talking about explicitly running serverside javascript code (that really has nothing related to controlling display elements / dom), the answer is no: JSP runs on the server before, then Javascript may run on the client.