I'm sure it's illegal for a woman to secretly swap out her boyfriend's medicine for a placebo, but good luck proving it happened in court.
Most women would never do this, but a few definitely would.
birth-control pills (male or female) are powerless against sexually-transmissible diseases.