No, the app continues to track your driving even if the phone is not connected to the internet. All the app needs is GPS connection and motion sensors, not an internet connection.
That being said, you won’t be able to see the trips in the app until your phone is connected to the internet ✌ ️
You can learn more about how your driving score is calculated here.