Answer
False
Work Step by Step
We can rewrite $f$ by simplifying by $x-1$:
$f(x)=\frac{x^{2}-1}{x-1}=\frac{x(x-1)}{x-1}=x$
for $x\not=1$.
The two functions have the same formula, BUT not the same domain: the domain of $f$ is $x\not=1$, while the domain of $g$ is the set of all real numbers.
So the two functions are not equal.