Very bad gamble if you need the job and a bunch of people just got laid off. If you can afford to move jobs, you would have done it already after the layoff.
My first internship in college, on my last week, my entire organization got laid off. We all went out to lunch at 9am, none of the engineers went back to the office that day. My first job after college, I was there for 6 years, we had I think, 11 layoffs in organizations I worked in, the first one was less than 6 months after I joined. My 3rd job after college, I was there for 5 years, we had at least 3 different layoffs.
In all cases the managers were completely understanding about the mental impact of the layoffs, both for those directly affected and those who kept their jobs and would need to pick up the work of the departing. Never once did I see a manager expect any work to be done the rest of that day after a layoff was announced.
If you ever work for a manager who isn't compassionate during a layoff, I'm sorry, that sucks.
Very bad gamble if you need the job and a bunch of people just got laid off. If you can afford to move jobs, you would have done it already after the layoff.