What Salty said...
You owe the unsuspecting public enough loyalty to show up competent, and do a thorough job.
After that, your loyalty should be to your family and your compensation (pay, bennies, QOL in whatever combination suits you).
Blind loyalty to a company will never get you far.
Loyalty to a pilot group or union is great as long as they also have your best interests at heart.