Yes, because you have different inputs, each associated with its output: your pair of values are suggesting a function f such that
[tex]f(3)=-5,\quad f(1)=2,\quad f(-1)=-4,\quad f(-2)=2[/tex]
So, you're never associating an input with two different outputs, so the relation is a function.
If, for example, you added the point (3, 55), you would introduce ambiguity, because you'd have
[tex]f(3)=-5[/tex]
but also
[tex]f(3)=55[/tex]
which is not acceptable for a function.