Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
A correct statement would be : suppose Y is unramified/étale/smooth over X, then $Y\times_X Z\to X$ is unramfied/étale/smooth iff $Z\to X$ is.
[EDITED] According to Matt's remark below, we must suppose $Y\to X$ surjective.