Yes you can but it matters if its int, float but If its int you can use it by patching in a mod menu or in every hex editor. But if you want to freeze the value you need to get the offset by using il2cpp dumper or If its another lib use ida and patch (replacing a value with another value) and with the replaced value it should work but you need to get the value to freeze the int, float or If its Something else