Yes, this game has both mods so it totally depends on the players in which mod they want to play this game. To play this game in an offline mod you don’t need to connect your device with an internet connection and you can play it anytime and anywhere.
But if you want to play it online then you must first have to connect your device with an internet connection otherwise you can’t take part in combat.