Yes, this holds in any UFD as well. Write down
$$a=p_1\cdots p_n$$
$$b=q_1\cdots q_m$$
$$c=z_1\cdots z_t$$
where each element on the right side is prime/irreducible.
Then $a|c$ implies that for each $p_i$ there is $z_j$ such that $p_i\equiv z_j$ (i.e. equal up to invertible). And so we have an injective function $A:\{1,\ldots,n\}\to\{1,\ldots, t\}$ with the property that $p_i\equiv z_{A(i)}$.
The same works for $b|c$ relationship, i.e. for any $q_i$ there is $z_j$ such that $q_i\equiv z_j$, giving us an injective function $B:\{1,\ldots, m\}\to\{1,\ldots,t\}$ with the property $q_i\equiv z_{B(i)}$.
Now $gcd(a,b)=1$ implies that $im(A)\cap im(B)=\emptyset$. Indeed, otherwise, if $A(i)=B(j)$ then $p_i\equiv z_{A(i)}\equiv z_{B(j)}\equiv q_{j}$ would be a common divisor of both $a$ and $b$. Therefore we have an injective function
$$A\sqcup B:\{1,\ldots,n,n+1\ldots,n+m\}\to\{1,\ldots, t\}$$
$$A\sqcup B(k)=\begin{cases}
A(k) &\text{if }k\leq n \\
B(k-n) &\text{otherwise}
\end{cases}$$
Which gives us that $z_i\equiv p_{A\sqcup B(i)}$ when $i\leq n$ and $z_{i-n}\equiv q_{A\sqcup B(i-n)}$ when $i> n$. This means that the decomposition of $a$ and the decomposition of $b$ can be found (disjointly) in the decomposition of $c$. Meaning $ab|c$.