Its definitely worth considering, but it's also entirely possible (especially at a very large company) that you are being hired into a different part of the business which is in some way isolated from the layoffs. E.g. joining a core business team while R and D / exploratory new stuff is getting cut might still be fine.
I'd also just ask them, although of course it's hard to trust any answer you get completely.