No. You cannot cancel this event. All you can do is have it return a string. That will make the browser ask the user if they want to leave.
Just imagine if you could block this event! You could make a site that the user could never close! Just imagine all the popups you could make. There's no way browsers are going to allow this.