Yeah, so long as it’s not for discriminatory reasons.
There is a difference between refusal of service and refusal of service based on discrimination.
Your bakery can refuse customers for being rude, or uncooperative.
But they can’t say your bakery won’t make something it can make because of YOUR religious freedom.
A service must offer alternatives. It can only legally refuse for discriminatory reasons IF they don’t say why. However, if they do say why and it’s for a discrimination, then the law should favor the the customer. If the service refuses, and doesn’t say, but then bake everyone else’s cake then there could be a lawsuit by the customer if there is evidence of discrimination.
In Masterpiece Cakeshop v. Colorado Civil Rights Commission, the Cakeshop only won because the commission violated the owners right to religious freedom based on the commission’s pursuit of protocol. It did not rule that Masterpiece Cakeshop could or did discriminate based on religious freedoms.
A later private lawsuit by Autumn Scandia found that their request for a cake did not violate Jack Philip’s religious freedom but that his refusal to make one was due to discriminatory reasons.
Since those cases, there are people trying to expand religious freedoms for discriminatory reasons.