If you you did not have a written employment contract guarantying or protecting your employment (e.g. preventing you from being fired for this reason), you were an employee at will. An employee at will may be terminated at any time, for any reason, even if you disagree with the employer's reason or explanation. They could terminate you simply because they wanted to, and you have no right to your job--again, unless you had a written employment contract. So without that contract, yes, you could be terminated for this reason.