It works both ways. You can also quit any time you want.
That's theoretically the benefit of at will. But that benefit is asymmetric - a company won't hardly notice one persons leaving, but a person's life will be unduly burdened by being fired with no warning or cause.