nah you should to know what architectures (ABI) is installed in your games, for example if your device/emulator is 64 bit and the original apk have 2 architectures lib (armeabi-v7a and arm64-v8a) then you have to use the hex code for ARM64
but if the game is installed with architectures (ABI) ARM not ARM64 then you can not use hex code ARM64 for that game
it is the basic modding with hex patching way, also for your code in ARM it should be "BX LR" not "ret", here is the correct one
Code:
ARM64:
MOV X0, #1 or #0
ret
ARM:
MOV R0, #1 or #0
BX LR