In field theory, an important concept is being able to extend a field $k$ by the root of an irreducible polynomial $f$, for instance by considering the field extension $k \subseteq k[x] / (f)$. This extension is unique up to isomorphism, in the sense that if $\alpha$ is a root of $f$ in a larger field $F$, then $k(\alpha) \cong k[x] / (f)$.
If I'm not mistaken, we can do a similar thing for domains. If $R$ is a domain and $f$ is a nonconstant irreducible polynomial of $R$, then $S = R[x] / (f)$ is a domain such that 1) $R$ is a subring of $S$ and 2) $f \in S[x]$ has a root in $S$. For example, if $R = \mathbb{Z}$ and $f(x) = 2x - 1$, then $S$ is the smallest subring of $\mathbb{Q}$ that contains both $\mathbb{Z}$ and $1 / 2$.
Does the uniqueness still hold in this case? Namely, if $R \subseteq T$ and $f$ has a root $\alpha \in T$, is it the case that $S \cong R[\alpha]$ (where $R[\alpha]$ is the image of $R[x]$ under the evaluation map)? If not, how should I interpret notation such as $\mathbb{Z}[i]$, $\mathbb{Z}[1 / 2]$, and $\mathbb{C}[x, x^{-1}]$? Is it perhaps true that uniqueness holds in these special cases?