a birth control pill is used for preventing pregnancy