No, it is not legal. Racial discrimination in employment is illegal under federal (or national) law; in addition, many states make it illegal as well. Hiring or firing people on the basis of race therefore can result in a legal claim or cause of action. If any negative employment action is taken against you (e.g. you are fired), you should meet with an employment law attorney to discuss the situation and your options.