Generic catch-all error template
Yes — an error.twig template in your error templates directory serves as a catch-all template when a more specific template (e.g. 404.twig) can't be found, or when the system throws a general error that doesn't have a status code attached.

(You can customize the path prefix for error templates by changing the errorTemplatePrefix setting in the Craft General Config.)