Yes, it is a function.
Each element in the set called the domain is related to exactly one output in a set called the range.
A function can have several inputs that provide the same output, but a function should never have one input that results in multiple outputs.