For the employee(s) being laid off, yes. I've never heard of a company closing their offices entirely during a layoff round.
(That doesn't mean it hasn't happened!)
(That doesn't mean it hasn't happened!)
Your security team and HR team must be really good lay-off some many people without causing violence, law suits, data leaks.
I can easily imagine that if 50% of people present in a office were laid off some would start a protest within the office which could degrade into some violence, damages and law suits. Also, having the HR systems automation must be really on par to revoke access correctly to so many people.