No. Some pyramids did have slabs which slid into place to close off passageways. However, these were architectural features which essentially let the builders close the door behind themselves and it required significant effort to get those slabs in place when they were used. They were not traps.