A+ and Security+ address different parts of an IT skill set. Consider whether hardware, troubleshooting, and operating-system foundations are gaps you need to fill before concentrating on security.
Security+ vs A+: different purposes
CompTIA A+ is an entry-level IT support credential covering hardware, software troubleshooting, operating systems, and basic networking. Security+ builds on that foundation with security concepts, threat analysis, cryptography, and governance. Many candidates pursue A+ first if they are new to IT entirely, then Security+ once they have foundational knowledge.
For candidates who already have IT experience, skipping A+ and going directly to Security+ is a common and valid path. DoD 8570/8140 requires Security+, not A+, for most security roles.