a contraceptive device can prevent pregnancy