Suppose given maps $f:X \to Y$ and $g:Y \to Z$ such that $f$ and $g \circ f$ both have contractible fibres. Then does $g$ have contractible fibres?

And, the same question, but with the maps assumed to be morphisms of algebraic varieties and contractible replaced with isomorphic to $\mathbb{C}^n$ (for varying $n$).