Most employers - and most employees - in California have a large amount of freedom to terminate employment relationships under the concept of employment at will. Employers are not allowed to terminate employees for just any reason, however. California and federal law establish a number of limitations on an employer's right to terminate an employee. One of these limitations is the prohibition of retaliating against whistleblower.
No one likes being terminated from a job. The feeling of rejection and abandonment is not entirely easy to take on a psychological level. There are also the financial consequences that will soon come into play because you have now lost your source of income. The sudden loss of your job will also have negative career consequences, as future employers will scrutinize your job history to determine what's "wrong" with you when, in fact, the only thing "wrong" is that you were unlawfully terminated.