Let $k$ be a field, $A$ a local $k$-algebra with maximal ideal $\mathfrak m$. Suppose furthermore that the residue field $A/\mathfrak m$ is isomorphic to $k$ as a ring. Can we then deduce that
$$ k\to A \to A/\mathfrak m $$
is an isomorphism, i.e. that $A/\mathfrak m$ has dimension $1$ over $k$ with respect to the algebra structure inherited from $A$?