No, consider $y^2-x^3-x^2 \in \mathbb{C}[x,y]$. It is an irreducible polynomial (by Eisenstein's criterion), but not an irreducible element of $\mathcal{O}_{(0,0)}$, since we have $y^2-x^3-x^2 = (y-x \sqrt{1+x})(y+x \sqrt{1+x})$. (Geometrically, the we look at the curve $V(y^2=x^3+x^2)$, and the completion reveals its two tangent directions at the origin.)