$\pu{112 ml}$ of hydrogen combines with $\pu{56 mL}$ of oxygen to form water. When $\pu{224 mL}$ of hydrogen is passed over heated cupric oxide, the cupric oxide loses $\pu{0.160 g}$ of its weight. All volumes are measured at STP. Show that the result agrees with the law of constant composition.
Although I solved the question, I came across a very interesting step in the procedure of doing so:
Weight of $\pu{112 mL}$ of $\ce{H2}$ at STP is calculated as $\frac{112 \times 2}{22400}$
Does this mean density of a gaseous substance at STP can be given as
$$\text{density} = \dfrac{\text{Mass}}{\text{Volume}} = \dfrac{\dfrac{\text{Volume(mL)}\times\text{Molar Mass}}{22400}}{\text{Volume(mL)}} = \dfrac{\text{Molar Mass}}{22400} $$
Can we say that this holds true?