A new study has confirmed the science behind an ancient form of birth control