Sure, in latest you can create a 404-page, with the error-page as content-type. That can be attached to a template.
In Global Settings there is the 404-page option with template-attachment already for longer, but that is the "old" logic, which will be gone in a few releases...