The basic rule is that you can't treat employees unfairly or differently. After all, it is common practice for an employee who plans to leave a job to provide two weeks' notice to an employer. But that's more of a business courtesy than a legal requirement. But in most situations, employers aren't legally required to do that. We've all heard of situations where employees have been asked to leave the premises immediately.
Some companies fear that employees are in possession of sensitive information.
And some companies have reason to fear that employees, once they're terminated or know they're going to be terminated, are going to do some harm to the company. It applies to plant closings and other sorts of mass terminations, as opposed to individual terminations. But there are a lot of loopholes. It doesn't apply to part-time workers. So you could basically pay off that notice.