2x + y = 5
Yes. You can write this in the form y = 5 - 2x. Different values for x will give different values for y. When x changes, y also changes.