No, it's not at all necessary to get Network+ before Security+ certification. Security+ certification is for those who are willing to break into the Cyber Security domain. But professionals take Network+ certification before taking up Security+ to help them improve their chances of success. And if you are not ready to go to Cyber Security, you do not have to take the CompTIA Security+ certification.
Take a look at the CompTIA Network+ Course that offers you an industry-grade course along with projects and assignments to help you crack the certification exam in your first attempt. Also, watch the video on Cybersecurity training.
Learn Cyber Security Course from this video :