Hey there! So this is possible via tethering/mobile hotspot. If you have this feature on your phone, you can use your phone as a hotspot for your iPad to get internet as the feature included unlimited 4G LTE Smartphone mobile hotspot.
Now, if you are using your phone in another country, you will only get 5GB of 4G LTE smartphone mobile hotspot.
Manage your T-Mobile account