Proof. Follows immediately from the corresponding statement for morphisms of schemes, see Morphisms, Lemma 29.11.9. $\square$

In your comment you can use Markdown and LaTeX style mathematics (enclose it like $\pi$). A preview option is available if you wish to see how it works out (just click on the eye in the toolbar).