Yes, this game comes with two mods that are offline and online. So when you want to play this game offline then you don’t need to connect your device with an internet connection.
On the other hand, when you want to play this game with the online players then you must first connect this game with an internet connection.