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, ...
If you don’t wish to use any USB devices or USB storage devices, you can block the USB ports on your computer. In Windows 11, ...
Windows 11/10 offers a feature that can notify whenever a connected USB device has issues. It can be with the device you just plugged into the computer or devices like printers, external storage ...