A:AnswerAll modern iPhones to date (July 2023) have a Lightning connector, so no, NOT directly.
With an iPhone 13 Pro and Apple brand USB adapter (Type-A) the OS reported:
"Cannot Use Accessory San Disk 3.2Gen1:
This accessory requires too much power"
______________
Now the following is really arcane. If the iPhone is used with a powered USB hub (external power) then this SanDisk USB drive will mount and files readable. Played .mp4 videos w/o issue. Compatible at the USB/data/format level.
A:Answerif your 5th gen iPad doesn't have a USB Type-A or Type-C port, you will need either a double female USB Type-A connector ("They do exist!" Santa -- M&M Christmas commercial) and a USB Type-A to Lightning cord (ditto/ibid) or a female Type-C to male Lightning connector.
It's been a while since I transferred files between Apple and Windows computers using a non-Apple flash drive, so there might not be compatibility. However, both systems have standardized file systems, so you should have no problems storing your music files on this device