Can empirical and molecular formulas be used to describe ionic concepts?

Of course $\text{sodium peroxide}$, $N {a}_{2} {O}_{2}$, certainly an ionic species, has an empirical formula of $N a O$. Anyway, if I have not addressed your question I am happy to try again.