If X and Y are both regular, then this is true. In fact, it's true more generally if Y is regular and X is Cohen-Macaulay (Eisenbud, Commutative Algebra, Corollary 18.17). In general it's certainly false.
user1594
- 1.2k
- 10
- 18