I completely agree. In my experience, security is much more effective when it's embedded throughout the SDLC instead of being treated as a final checkpoint. Finding vulnerabilities during design, coding, or CI/CD is significantly less expensive than fixing them after deployment or, worse, after a production incident.
Practices like secure coding standards, SAST, SCA, secret scanning, infrastructure-as-code scanning, and automated dependency checks help identify issues early. Penetration testing is still essential, but it should validate the effectiveness of the security controls, not be the primary method of discovering vulnerabilities. That's the core idea behind DevSecOps, making security a continuous responsibility rather than a last-minute activity.