Yes but that's "legal loyalty", basically being honest, which is not the same as e.g. making efforts or sacrifices out of loyalty.
The law asks one to "act faithfully". Faithfully can easily be used as a synonym for devoted and some employers ask a religious devotion to the company.
And in any case some jurisdictions have employment at will...