Yes, if we are in the above situation and $A$ is an integral domain, then this implies that $B$ is an integral domain.
Related question: Ring-theoretic characterization of open affines?
We proceed using several lemmas.
Lemma 1: Let $T = \{f \in A \mid A[f^{-1}] \overset{\cong}{\to} B[\varphi(f)^{-1}]\}$ be the set of those $f \in A$ such that the induced map $A[f^{-1}] \to B[\varphi(f)^{-1}]$ is an isomorphism. Then $T = \sqrt{I}$.
Proof of Lemma 1: For this, we will check three claims:
Claim 1: $T$ is a radical ideal
Claim 2: $I \subseteq T$
Claim 3: $T \subseteq \sqrt{I}$
From these three claims, it will follow by Claim 1 and Claim 2 that $\sqrt{I} \subseteq T$, which together with Claim 3 will imply that $\sqrt{I} = T$, finishing the proof.
Proof of Claim 1: If $f \in A$ and $n \in \mathbb{N}$, then inverting $f$ is the same as inverting $f^n$. Hence the map $A[f^{-1}] \to B[\varphi(f)^{-1}]$ is an isomorphism if and only if the map $A[(f^n)^{-1}] \to B[\varphi(f^n)^{-1}]$ is an isomorphism. So if $f^n \in T$, then $f \in T$. Hence $T$ is a radical ideal.
Proof of Claim 2: Take any $f \in I$. Now consider the following diagram:
$$
\begin{array}{ccccc}
A & \overset{\varphi}{\longrightarrow} & B & \longrightarrow & B[\varphi(f)^{-1}] \\
& {\scriptstyle \iota_f \!} \searrow & \downarrow {\!\scriptstyle \exists !} & \swarrow {\!\scriptstyle \exists !} & \\
& & A[f^{-1}] & & \\
\end{array}
$$
Since $f \in I$, we have $\langle \iota_f(I) \rangle = \langle 1_{A[f^{-1}]} \rangle$. Hence by the universal property of $B$, there exists a unique middle vertical arrow making the left triangle commute.
But now the middle vertical arrow sends the element $\varphi(f)$ to the invertible element $f$, so that by the universal property of the localization $B[\varphi(f)^{-1}]$, there exists a unique right vertical arrow making the right triangle commute. This must be an inverse to the natural map $A[f^{-1}] \to B[\varphi(f)^{-1}]$, so that map is an isomorphism.
Proof of Claim 3: Take $f \in T$. Now we have the following commutative square:
$$
\begin{array}{ccc}
A & \overset{\varphi}{\longrightarrow} & B \\
{\scriptstyle \iota_f \!} \downarrow & & \downarrow \\
A[f^{-1}] & \overset{\cong}{\longrightarrow} & B[\varphi(f)^{-1}] \\
\end{array}
$$
Since the bottom map is an isomorphism, we obtain a triangle
$$
\begin{array}{ccl}
A & \overset{\varphi}{\longrightarrow} & B \\
& {\scriptstyle \iota_f \!} \searrow & \downarrow \\
& & A[f^{-1}] \\
\end{array}
$$
But this implies that $\langle \iota_f(I) \rangle = \langle 1_{A[f^{-1}]} \rangle$. Hence $\iota_f(I) \cap \{1, f, f^2, \ldots\} \neq \emptyset$, so there is some $n \in \mathbb{N}$ with $f^n \in I$, so $f \in \sqrt{I}$.
Lemma 2: $\langle \varphi(T) \rangle = \langle 1_B \rangle$
Proof of Lemma 2:
$$
\langle \varphi(T) \rangle = \langle \varphi(\sqrt{I}) \rangle \supseteq \langle \varphi(I) \rangle = \langle 1_B \rangle
$$
Lemma 3: If $J \subseteq B$ is an ideal, then $J = \langle 1_B \rangle$ if and only if $\sqrt{J} = \langle 1_B \rangle$
Proof of Lemma 3: If $J = \langle 1_B \rangle$, then $\sqrt{J} \supseteq J = \langle 1_B \rangle$.
On the other hand, if $J \neq \langle 1_B \rangle$, then there is some prime ideal $\mathfrak{q} \subseteq B$ with $J \subseteq \mathfrak{q}$. But then also $\sqrt{J} \subseteq \mathfrak{q}$, so $\sqrt{J} \neq \langle 1_B \rangle$.
Lemma 4: If $D \subseteq B$ is any subset and $n \in \mathbb{N}$, then $\langle f \mid f \in D \rangle = \langle 1_B \rangle$ if and only if $\langle f^n \mid f \in D \rangle = \langle 1_B \rangle$
Proof of Lemma 4: We have $\sqrt{\langle f^n \mid f \in D \rangle} = \sqrt{\langle f \mid f \in D \rangle}$. Hence we are done by Lemma 3.
Lemma 5: If $g \in B$ is such that for all $f \in T$, the image of $g$ under $\iota_{\varphi(f)}: B \to B[\varphi(f)^{-1}]$ is $0$, then $g = 0$.
Proof of Lemma 5: Since by Lemma 2, $\langle \varphi(T) \rangle = \langle 1_B \rangle$, there are $f_1, \ldots, f_n \in T$ such that $\langle \varphi(f_1), \ldots, \varphi(f_n) \rangle = \langle 1_B \rangle$. For each $1 \leq i \leq n$, we know that $\iota_{\varphi(f_i)}(g) = 0$ in $B[\varphi(f)^{-1}]$, which means equivalently that there is some $m_i \in \mathbb{N}$ with $\varphi(f_i)^{m_i} g = 0$ in $B$. Let $m = \underset{1 \leq i \leq n}{\operatorname{max}} m_i$. This implies that in particular $\varphi(f_i)^m g = 0$ in $B$. But now by Lemma 4, we know that $\langle \varphi(f_i)^m \mid 1 \leq i \leq n \rangle = \langle 1_B \rangle$. Hence $g = 0$ in $B$.
Lemma 6: If $g \in B$ is nonzero, then there is some $f \in T$ such that the image of $g$ under $\iota_{\varphi(f)}: B \to B[\varphi(f)^{-1}]$ is nonzero.
Proof of Lemma 6: This is just the contraposition of Lemma 5.
Theorem 7: If $A$ is an integral domain, then $B$ is an integral domain
Proof of Theorem 7: By contradiction. Assume that $A$ is an integral domain, but $B$ is not. Then there are $h, k \in B$ with $h, k \neq 0$ and $h k = 0$. By Lemma 6, there are $f, g \in T$ such that $\iota_{\varphi(f)}(h) \neq 0$ in $B[\varphi(f)^{-1}] \cong A[f^{-1}]$ and $\iota_{\varphi(g)}(k) \neq 0$ in $B[\varphi(g)^{-1}] \cong A[g^{-1}]$.
Now, since $A$ is an integral domain and $f \neq 0$ and $g \neq 0$, we also have $f g \neq 0$. Hence the maps $A[f^{-1}] \to A[(f g)^{-1}]$ and $A[g^{-1}] \to A[(f g)^{-1}]$ are injective. In particular, since $\iota_{\varphi(f)}(h) \neq 0$ in $B[\varphi(f)^{-1}] \cong A[f^{-1}]$, we have that $\iota_{\varphi(f g)}(h) \neq 0$ in $B[\varphi(f g)^{-1}] \cong A[(f g)^{-1}]$. Analogously, since $\iota_{\varphi(g)}(k) \neq 0$ in $B[\varphi(g)^{-1}] \cong A[g^{-1}]$, we have that $\iota_{\varphi(f g)}(k) \neq 0$ in $B[\varphi(f g)^{-1}] \cong A[(f g)^{-1}]$. Since $A[(f g)^{-1}]$ is an integral domain, this implies that $\iota_{\varphi(f g)}(h k) = \iota_{\varphi(f g)}(h) \iota_{\varphi(f g)}(k) \neq 0$ in $B[\varphi(f g)^{-1}] \cong A[(f g)^{-1}]$.
On the other hand, we know that $h k = 0$ in $B$, so that $\iota_{\varphi(f g)}(h k) = 0$ in $B[\varphi(f g)^{-1}] \cong A[(f g)^{-1}]$.
This contradiction finishes the proof.