Yes you can redirect 404 page to your website’s homepage. Open your 404.php file (if it doesn’t exist then create a blank file) and add the following code:
header(“HTTP/1.1 301 Moved Permanently”);
That’s all your 404 page is redirected to your site’s home page. Now visitors hitting 404 will get automatically redirected to home.