The company is free to pay the salary and tell the employee not to show up during that time.
Which is so common it's called "garden leave".
Which is so common it's called "garden leave".