Yes. This is the only good way to convert from one material to another. The stoichiometric equation will always tell you the ratio of moles, much simpler than trying to handle anything like the ratio of masses. That is why the mole is technically known as the unit of “amount”.