That may be necessary but it won't be sufficient. Memory safety breaks down at the edges. You can't trust the hardware (see Spectre or Rowhammer). Besides, even if the whole world were memory safe, with no buffer over/underflows or use after free or anything like that, you'd still get logic bugs like the recent sshhole.