500 errors

Does it work fine if the 500 handler is above the 404?