Are polynomials with the same roots identical?
No, they are not.
For instance, $2x^2-2$ and $x^2-1$ have the same roots, yet they are not identical.
And, depending on what you mean by "the same roots", we have that $x^2-2x+1$ and $x-1$ have the same roots, yet they are not identical.
Again, depending on what you mean by "the same roots", $x^3+x$ and $x^3+2x$ both only have one real root, yet they are not the same.
However, if two monic polynomials have the same roots, with the same multiplicities, over some algebraicaly closed field (like the complex numbers $\Bbb C$) then yes, they are identical.
The accepted answer is deservedly so, a great explanation. As I read this, I thought of my students who are visual learners, for whom, a picture is worth a thousand words, and this would answer their question with almost no further comment.
The image above shows a simple $Y=(X-1)(X-2)(X-3)$ and an overlapping $Y=-3(X-1)(X-2)(X-3)$.
This helps show that manipulation made to an equation such as factoring may preserve the roots, but do not leave an equation with the the same nature, e.g. the end behaviour which might be important, is easily lost.
Edit - by popular demand, I'm adding the original graph, and an overlapping one with 2 as a double root.
For polynomials over $\mathbb{R}$, the answer is no; for example, $f(x)=x$ and $g(x) = x(x^2+1)$ have the same roots over $\mathbb{R}$—with the same multiplicities—but they are not equal.
For polynomials over $\mathbb{C}$, the answer is almost. The fundamental theorem of algebra says that every polynomial over $\mathbb{C}$ of degree $n \ge 1$ splits uniquely into $n$ linear factors. So if $f$ and $g$ have the same roots $\alpha_1,\alpha_2,\dots,\alpha_n$, listed with multiplicity, then $$ f(x) = \lambda (x-\alpha_1)\cdots(x-\alpha_n) \text{ and } g(x) = \mu(x-\alpha_1)\cdots(x-\alpha_n) $$ for some $0 \ne \lambda,\mu \in \mathbb{C}$. So roots (with multiplicity) determine polynomials over $\mathbb{C}$ up to a multiplicative constant and, in particular, monic polynomials over $\mathbb{C}$ are uniquely determined by their roots.
For polynomials over finite fields, the answer is very much no. There are polynomials that don't just have the same roots, but they have all the same values for every input. For example, the polynomials $f(x) = x$ and $g(x)=x^3$ over $\mathbb{F}_2$ satisfy $f(x)=g(x)$ for all $x \in \mathbb{F}_2$, and yet $f \ne g$.