Is it always true that if $a^2=b$ then $a=\pm\sqrt{b}$ ? I've seen it stated that if $x^2=k$ then $x=\pm\sqrt{k}$ where k is real, but have not seen the more general case, so I'm wondering if there is a reason why not. If this is not true generally, what are some counter examples that could be shown on an Algebra 1 level?
Edit: A better statement of my original question might be this...
It appears that "if $a=b$ then $a+c=b+c$" is universally true regardless of context. Are there contexts in which $a^2=b$ could not be equivalently written as $a=\pm\sqrt{b}$ ? Would any such context be understandable on an Algebra 1 level? Perhaps where still with $a$ and $b$ limited as either complex numbers or expressions with complex coefficients.
Thank you!

In any (commutative) field a quadratic equation like $x^2 = k$ can have at most $2$ solutions. If the field is the field $\Bbb{R}$ of real numbers, then we know that $x^2 = k$ has no solutions if $k < 0$, $1$ solution if $k = 0$ and $2$ solutions if $k > 0$. In the real numbers, we can also conveniently define $\sqrt{k}$ for $k \ge 0$ to be the non-negative solution of $x^2 = k$, so that the solutions of $x^2 = k$ are indeed $x = \pm \sqrt{k}$.
If we move to the field $\Bbb{C}$ of complex numbers, then $x^2 = k$ always has $1$ or $2$ solutions: $1$ if $k = 0$ and $2$ otherwise. In $\Bbb{C}$, we can still think of the solutions as comprising $\pm \sqrt{k}$, but the function $\sqrt{\cdot}$ is trickier to define (there are many possibly definitions, depending on the choice of what is called a branch cut).
If we carry on with the Cayley-Dickson construction and move to $\Bbb{H}$, the quaternions, which is a division ring (like a field but with a multiplication that is not commutative) then an equation like $x^2 = k$ typically has infinitely many solutions. In $\Bbb{H}$, it doesn't make much sense to try to define $\sqrt{\cdot}$.
I think the above goes beyond Algebra 1, but I hope it is of interest.