Does this relation define a function?

{(-8,2), (-8,8), (-1,8), (5,6), (8,7)}

my answer is:

No. (-8,2) and (-8,*) the first coordinates are copies of one another.

You are absolutely correct.