Usually. Just make sure the new machine code is the same size as the old.<p>That said, if the code is signed and there&#x27;s a signature check - the check will fail if you modify the code.<p>If the signature is a simple crc&#x2F;checksum, you could also update the checksum.
If it&#x27;s a cryptographic signature, it might be a lot more difficult.