Yes partly; around 2015/2016 according to the Egyptian government and more recently a surge in hamas-linked terrorist groups in the Sinai.
https://www.reuters.com/article/world/egypt-court-seeks-deat... https://www.arab-reform.net/publication/the-egyptian-armys-c...
It's more complicated of course:
https://www.sydney.edu.au/news-opinion/news/2024/02/27/why-e...