Yes. Once a policy has been put in place, it’s important that you adhere to it. Otherwise, you risk being fired. But first, the employer will request that you change the attire before taking other stringent measures.