No they are not. For starters, their names are different. Secondly, in one molecule of sodium chloride (NaCl), there is one atom of sodium to each chloride atom. In sodium hydroxide (NaOH), there is...
The atomic ratio between sodium and chlorine in sodium chloride is 1:1, as indicated by its formula NaCl. If the mass ratio is wanted, it is that of the atomic weights of the two elements.