Yes, and my schools were not throwing out sandwiches either. Schools started doing so because it became a serious liability issue with kids weaponizing it for bullying and leading to death. Unless you have a solution for the human condition that will stop people leveraging deadly allergies as a form of torment, then schools will keep doing so.
I literally posted a story where this was happening, did you not read the link I shared? There are multiple other examples in just the past few years, and the thing is that all it takes is one inciting incident to cause massive problems for the school district.
I'm sure you can find an article about peanut allergies at any point in recorded history where they had peanuts.