Although you do not have an absolute right to keep your job, the law does protect you against adverse employment action in some instances.
If you have experienced discrimination, harassment or retaliation, you may be entitled to legal protection.
Make sure your employer is playing by the rules.