Let $Z$, $X$ and $Y$ be topological spaces and let $f:X\to Y$ be a continuous surjection then is the induced map $g \to f\circ g$ from $C(Z,X)$ to $C(Z,Y)$ is continuous. But is it still a surjection?

My issue is that it's not clear if it has a right-inverse...