If you try to boost your SEO, you should return respective status code with a not found page. See there.
Set status: 404 in your server routes like that:
export const serverRoutes: Routes = [
// ... your existing routes
{ path: '**', renderMode: RenderMode.Client, status: 404 },
];