Yes
1) The best way to tackle this question is to draw a diagram, and represent this function, so let's do it:
2) Now, let's remind ourselves of the concept of a function:
3) As we can see in our diagram and in the coordinates pairs, we can see that this is a function for each element of x is assigned to one and only element of Y