Most branches of the military have strict grooming rules. Some large US companies have strict grooming rules. The New York Yankees baseball team doesn't allow facial hair period.
If you're an employee, you can quit. It might not be prudent, depending on the perks of the company, but you won't be shunned for finding another job.
If you're in the military, you don't have to sign back up once your time is done, and again, no one will shun you because you moved on.
If you're a Yankee, you know going in the deal. If it's a deal breaker, you can always sign with the Red Sox. And still the Yankee players won't shun you.