Hah well no, but they also won't pay that last day. If you use PTO they have to pay you and might not even fire you that day because of HR rules about needing to be in person/with witnesses etc
Funny story: I was on vacation when a previous job ended in layoffs, which happened on a Friday. On Sunday night I got an IM from a coworker letting me know about the layoffs, but I still went into work on Monday, feigning ignorance. Here, if you show up for work but they have no more work for you, they still have to pay you for a minimum of 3 hours. Anyway, unemployment Insurance is a federal thing, here. They still delayed the 2 weeks of pay they would normally have to pay it by calling it a temporary layoff, though they paid it 6 months later when temporary became permanent.
Years later at a different job, I was home, sick from food poisoning when layoffs happened. Came into work the next day only to be invited by the HR person into a meeting room where they explained what had happened. I still had a small assignment I'd promised to a VP, so I asked if I could just finalize it and send it off. They let me and I did it (took maybe 30 minutes) and then I left. About 4 years later, when I was looking for work, that VP remembered me, and that contributed to being rehired there in a new position, and I've been with that same employer now for the past 12 years (that VP has since left.) Best place I ever worked at, both times.
You can be laid off while not in the office or out on paid leave.
In many places paid time off is counted as compensation, which means they have to pay it to you if they let you go or fire you. So check that first as well.