a contraceptive device can prevents pregnancy