Short answer: Yes
Long answer: XOR is a binary operation, it works with individual bits and is commutative.
He has a truth table:
ABQ 0 0 0 0 1 1 1 0 1 1 1 0
Since the number is composed of these bits, the result will be the same if both bits have the same result for each bit position. For example, take 2 8-bit numbers 113 and 42
113 = 01110001 42 = 00101010 XOR = 01011011 = 91
but if I change the fourth bit on the left, I get
97 = 01100001 58 = 00111010 XOR = 01011011 = 91
So yes again ...
source share