If X$X$ and Y$Y$ are both regular, then this is true. In fact, it's true more generally if Y$Y$ is regular and X$X$ is Cohen-Macaulay (Eisenbud, Commutative Algebra, Corollary 18.17). In general it's certainly false.
Zach Teitler
- 6.2k
- 3
- 33
- 63