As an at-will employee (one who is neither bound by a specific employment contract nor a collective bargaining agreement), you are subject to termination for any reason, whether good or poor. And no, you don't have to be given a written warning or explanation for your dismissal. The only exception is that discrimination is never a valid ground for termination. If you get fired for breaching a stringent law, you may have legal recourse in several states.