JACQUES D. answered 11/12/21
Ivy league and MIT educated Chemical Engineer with career as teacher
Yes, that is correct. It should be one of the first Oxidation Number rules: When reacted, the state of IA, IIA, and Al are +1, +2, and +3 respectively. (This dominates over any other Ox No. rules). Atoms have ox no. of 0 when unreacted with other elements.
Na2O2 Oxygen rule is that O is pretty dominant that it has a reacted state of -2, but the Na must be +1, meaning that the O must be in a -1 state to balance the overall Ox No. charge. This is the peroxide state: O22-
Hydrogen is dominant over O (in terms of Ox No. ) as is fluorine (OF2 O is in +1 state)