I know the theorem ---
Let $(X, d)$ and $(X', d')$ be metric spaces. $f: X \mapsto X'$ is a continuous function if and only if for every open set $U \subset X'$, $f^{-1}(U)\subset X$ is open in X.
Does that mean for every open set $A \subset X$, $f(A) \subset X'$ is open? Basically, I'm asking whether the part that comes after "if and only if" works conversely?