Is this a function yes or no

Answer:
Yes
Step-by-step explanation:
Draw a vertical line anywhere on the graph. If it hits 2 points, then it's not.
I also attached an example when a graph is not a function
See how it hits two point on the graph?
If my answer is incorrect, pls correct me!
If you like my answer and explanation, mark me as brainliest!
-Chetan K