Unless you have a written employment contract preventing your termination for this reason, they may terminate you. Except if and to the extent that the employer's ability to terminate you is restricted by a signed contract, you are an "employee at will" and may be terminated at any time, for any reason whatsoever.