No. For example, if X is a variable. The equation X=X+4 does not make sense mathematically, but to a computer it will set a new value for X equal to the old X value plus 4.
The variable can affect all pieces of code (sprites) or only one piece of code (sprite).
A variable can store only one value at a time.
Variables always have to have a value in them, and this code switches them both at once which doesn't work. Another variable is needed to store a value so the varibles can switch their values one at a time.
A variable "temp" is being set to the variable "value_1". "value_1" can then be set to "value_2" and after that "value_2" can be set to temp, which is the old value of "value_1". Effectively the values of "value_1" and "value_2" were switched.