Is the following a linear function?

x -2 0 2 4

y -4 0 4 8

My answer is yes.

the x's increase by 2

and for each of those increases of 2 , the y's increase by 4

Yup, you are right.