Yes you can, set it up as a page workflow on the 404 page (either upon page load or whatever trigger you wish to use).