Try it and see?
The gps doesn't need a data connection to save basic location information, but Apple uses the data connection to retrieve mapping info. If you have wifi sometimes then it will use that instead for map info retrieval.
It also can use cell tower and wifi to help in position determination, but I'm not clear if that is all local or it uses some network lookup over a data connection to assist.