Shall Muslims be forced to sell pork products while employed at a grocery store? Shall Muslim cab drivers be forced to ferry passengers with liquour?
Should be up to the grocery store and cab company's policies. When you agree to take a job there are certain expectations. If they conflict with your values, don't take the job. In this case, I'd let the pharmacy do as it likes just as I believe courts were wrong to demand the Catholic Charities organization cover contraceptive costs under employee health care benefits.