yeah you can,,
either bind the event of javascript to the button or use the code directly in your code behind page
for example:
on button's click event write:
string jscript = "<script>alert('YOUR BUTTON HAS BEEN CLICKED')</script>";
System.Type t = this.GetType();
ClientScript.RegisterStartupScript(t, "k", jscript);