Can an iphone GPS work with just a prepaid data only sim card?

Can an iphone GPS work with just a prepaid data only sim card?

The GPS signal is a "dumb" one-way signal that is received from satellites. To receive that signal uses NONE of your mobile data. That data though only gives your position in such a manner as it can be converted into longitude, latitude, and elevation. So in order to USE the information you may need to use an app that does something with that data.
So, to use say Google Maps, you would either need to first download maps for your area or have a live data connection that can retrieve the maps!