In bathroom vending machines in high schools (for both sexes), I don't really see why not. Better to at least give the kids who are having sex pause, though some kids will be using them for pranks or to show off.
In a free basket in the nurse's office, no. That, I feel, is overstepping boundaries for what is and is not appropriate. One is the school allowing access to kids to use their own money to buy prophylactics, while the other is using school funds to buy them for the kids, therefore assuming that sexual activity is going to be the baseline. Not to mention that when things are handed out for free, plenty of kids don't respect them or have the maturity to deal with them, at least judging from the condom water balloons and condom wrapper chains that festooned my high school when they handed out condoms.