No, you'd just need to remove the HID class drivers, for example. So disallow HID_DEVICE, HID_DEVICE_SYSTEM_MOUSE and HID_DEVICE_SYSTEM_KEYBOARD. This would, if I'm following Coleman's link right, ...
In iOS 12, there's a new setting that will effectively put an end to law enforcement access to iPhones and iPads using USB devices like the GrayKey box, preventing USB accessories from connecting when ...