I saw it had layoffs a few months ago.
Cisco has had frequent layoffs, sometimes quarterly, for 23 years, and the layoff in February you mention is one of a set that will span from Q3FY2024 (the February layoffs) through Q1FY2025 (ending in October 2024.) As Cisco's management said well over a decade ago, layoffs as often as once a year is a sign of a poorly managed company.
All other aspects work for me, including the pay and company culture.
When interviewing at any company realize they are showing you the datasheet for a job that may or may not exist, and it it does it may be something quite different from what you think. You might have lucked out and found a good team but that doesn't mean you know the larger company culture.
Would it be safe to accept a position at a company that had layoffs so recently?
As a janitor? An engineer? A Vice President? Are you currently unemployed? What other options do you have? These each have different risk profiles associated with them. Safety isn't just not getting laid off now, it's using your current skills while growing new ones, and when you hit the wall of growth make the choice to move on yourself.