Can we beat software vulnerabilities?

Can we beat software vulnerabilities? It is not possible to do so completely, but there are ways to mend the issue.