If you deal with the general public, then sure. If you are licensed to only deal with a specific organization (i.e. only a specific church) that shares your values, and if it is possible to succeed at business that way, then you aren’t violating the law.
So, if you go into business, you must put your religious beliefs behind you?