The answer is YES, it is a function.
A function is simply a relationship between two sets of numbers usually referred to as an "ordered pair"
9.5m questions
12.2m answers