I think there is no problem with what you say.
Your statement is "if and only if". You prove $f$ Borel $\Longrightarrow$ graph is Borel. The converse is true: graph is Borel $\Longrightarrow f$ is Borel. This much (Prop. 8.3.4) can be proved without the theory of analytic sets.
But you noted that more is true: graph is anaytic $\Longrightarrow f$ is Borel. This is also true, but (of course) requires the theory of analytic sets. If $E$ is Borel, then both $f^{-1}(E)$ and its complement
$A \setminus f^{-1}(E) = f^{-1}(Y \setminus E)$ are analytic, so $f^{-1}(E)$ is Borel.