The answer is No. Recall the question:
Let $A\subset\mathbb{C}$ be an open set containing the closed unit disc. Let $f$ be an analytic function from $A$ to $\mathbb{C}$ such that $|f(z)|=1$ if $|z|=1$.
Does it follow that
$$f(z)=az^{n}\,\frac{cz^{m}-b}{1-\bar{b}cz^{m}}$$
for some $a,b,c\in\mathbb{C}$ s.t. $|c|=1$, $|a|=1$, $|b|\le1$ and some $n,m\ge0$?
Let $B$ be the set of analytic functions from $A$ to $\mathbb{C}$ such that $|f(z)|=1$ if $|z|=1$, and let $C$ the set of rational fractions of the indicated form.
If $f$ is an element of $C$ with $0<|b|<1$ and $m\ge1$, then $z\mapsto f(z)^2$ is in $B$, but, having a multiple zero $z_0\not=0$, is not in $C$.