I don't think so, since the output from a die call normally goes to STDERR. Assuming you're working on a CGI script, the text would go to the error log, and not to the browser.
Try this instead:
if( $select->rows ) {
print h1( {class=>'cyan'}, "Error occured $row->{username}! Script
+ have to die" );
exit 0;
}