is this a function. yes or no?

Answer:
yes
doing problems like these you should always worry about the numbers underneath the X instead of the Y.