No, it is illegal to terminate someone’s employment for participating in a class action suit. Federal law protects you against retaliation by your employer.