Yes…
The Magic Keyboard for Mac works with any iPhone or iPad as long as it runs at least iOS/iPadOS 10.3. Follow the steps below to connect the keyboard wirelessly:
- Make the keyboard discoverable by flipping the switch on its back off and then back on.
- Open the Settings app and tap on Bluetooth.
- Select your Magic Keyboard when it shows up under Other Devices.
If the keyboard doesn't appear, check that Bluetooth is enabled on your iPad first. If it's already paired with a Mac, you'll need to unpair it before connecting it to your iPad or another device.