Yes, using the "onclick" function.
But, if you do that, then people who have javascript disabled cannot submit the form, which is bad bad naughty bad go stand in a corner and be ashamed bad bad naughty bad.
A very nice solution is to use images that contain text that looks just like the normal web text. A bit more difficult to make, but at least that works for everyone.