Yes, via USB you can use midi, e.g. with an iConnectMidi4 interface, which should also work without iPad connected.
Precisely..
And there is more solutions for this, which are under €80
It also need a external power supply for the converter if you want to control external modules.
Again we are not talking about Midi to USB. We are talking about keyboards with USB out to physical Midi connector.
Your typical Midi to USB ( computer) will not work due to lack of power supply.
https://www.sweetwater.com/store/detail/MIDIExpand--keith-mcmillen-instruments-midi-expander?mrkgcl=28&mrkgadid=3301332467&rkg_id=0&product_id=MIDIExpand&campaigntype=shopping&campaign=aaShopping%20-%20SKU%20-%20Studio%20%26%20Recording&adgroup=Studio%20Mixers%20%26%20Control%20Surfaces%20-%20Keith%20McMillen%20Instruments%20-%20midiexpand&placement=google&adpos=1o2&creative=280136033989&device=m&matchtype=&network=g&gclid=EAIaIQobChMIhYHexJr84wIVGNtkCh0JZABGEAQYAiABEgJg_fD_BwE
Way more cables.
For home/ studio , no issues.
But for live, unless you are totally satisfied with onboard sounds (or iPad sounds if you are using ipad’s Soft synth via camera connection kit), not ideal.
Ipad here is only to manage onboard sounds of P121/125.
https://m.youtube.com/watch?v=neXswJJcatchttps://m.youtube.com/watch?v=gTu6soq2j_khttps://m.youtube.com/watch?v=FZbaHLz2wsY