I doubt that you would ever find a doctor who would take such an action. Such a doctor would realize that delivering a baby is as much a treatment for the child as for the mother, and would not likely want to see harm come to the child.
I once doubted whether a pharmacist would refuse to fill prescriptions, but here we are
If a Dr refuses to treat someone and the condition worsens or the person dies, the Dr can be sued. If a woman becomes pregnant, can she sue the pharmacist for not selling the Birth Control device?
I take BC and if you looked at my prescription & me you'd assume I was just some easy whore. In reality my policy is to never give men free milk, and BC is literally a lifesaver.