If your account is linked to a Google or Apple account, you can continue playing the game even if you reinstall it or change devices.
However, for guest accounts, account data is tied to the device you are using. Therefore, it is essential to link your account to a Google or Apple account first to preserve your progress before reinstalling or changing devices.