Definitely not a silver bullet (consider also that memory management isn'the only source for vulns), but still much better than C/C++.