Yes, you need a USB/MIDI interface. It requires a microcontroller to handle the USB protocol, but this can be integrated in a large plug.
The only requirement is that it must actually work. In theory, this should be self-evident, but there are still devices based on the broken CH345 chip (it does not handle SysEx or running status correctly). Avoid any devices that look like this, i.e., that have a case with LEDs, in exactly this form, and cables with metallic-lookling shielding:
Any other USB/MIDI interface should work. (All operating systems have built-in drivers for USB MIDI devices.)