Consider the category $\mathbf{Top}$ of topological spaces as a cofibrantly generated model category, which is generated by $I=\{S^{n-1}\to D^n; n\geq 0\}$ (boundary inclusions) and $J=\{D^n\to D^n\times[0,1]; n\geq 0\}$ (inclusions $x\mapsto(x,0)$). For a continuous map $f\colon X\to Y$ between CW-complexes $X$ and $Y$ (they are I-cell complexes in model categorical sense), its mapping cylinder $M_f=D\times [0,1]\cup_f Y$ could be seen as the pushout of $X\times[0,1]\xleftarrow{(1_X,1)}X\xrightarrow{f}Y$.
My question is I do not know whether the following inclusion is a cofibration in this model categorical sense. $$X\to M_f\quad,\quad x\mapsto(x,0)$$
Or a conclusion of whether this inclusion is a Serre cofibration is also helpful for me! These two questions are equivalent.
(To avoid the confusion on marks 0 and 1, I get the mapping cylinder $M_p$ by attaching $X\times\{1\}$ of $X\times[0,1]$ and $Y$, and the inclusion is to the other side $X\times \{0\}$ in cylinder $M_p$).