Charging iPad while using iRig USB

I have an iRig USB guitar interface for my iPad Pro M3. With my previous iRig Pro device, i had an accessory that allowed me to connect both to my iPad Air 2 and to a power supply, so I could power my iPad while using the iRig. If I plug the iPad and the iRig into a powered USB hub, will I be able to charge and play at the same time?

If you use a USB-C hub that supports USB-PD (Power Delivery) that should charge your device and allow you to plug iRig USB into it.

Thank you for the quick response!