Yes, you can, and often do, replace the old value of a variable based on the current value of the variable.