Answer:
Yes
Explanation:
Whenever you are given a problem that's asking to see if a graph is a function or not, always use the vetical line test to determine that. In short, you draw a line accross each y axis point and if the line only goes accross one point throughout the graph then it's a function. Following the test we will see that both graphs are indeed functions.
Best of Luck!