There’s a large variety of contraceptive measures out there meant to prevent unwanted pregnancies. Most of them involve using some sort of accessory to get the job done, be it a condom, a pill, or a device. Others involve science. Studying and understanding the periodicity of the menstrual cycle works if done correctly. None of those is 100% secure, and only the condom happens to also stop the spread of sexually transmitted diseases.