Yes it's true, as a general fact on topological groups.
Let $G,H$ be $\sigma$-compact locally compact groups, $N$ a closed normal subgroup of $G$ and $i$ an injective continuous homomorphism $H\to G$. Suppose that as an abstract group one has $G=N\rtimes H$ (that is, $N\cap i(H)=\{e\}$ and $Ni(H)=G$). Then $i(H)$ is closed.
Indeed, by assumption the canonical map $N\rtimes H\to G$, $n.h\mapsto ni(h)$, is continuous and is an abstract group isomorphism. Hence, by the next lemma, it is a topological isomorphism (i.e., its inverse is continuous), and in particular $i(H)$ is closed.
Lemma Let $f:G\to H$ be a continuous bijective homomorphism between locally compact groups, with $G$ $\sigma$-compact. Then $f$ is a topological isomorphism, i.e., $f^{-1}$ is continuous.
For a proof of the latter (which is a simple application of Baire's theorem), see this MathSE answer.