Is magnesium oxide a covalent compound?
No, its ionic.
It exists as a FCC lattice of
Given the large difference in electronegativity between a metal like magnesium and oxygen, there is no sharing of electrons. Instead two valence electrons from magnesium transfer to the oxygen atom, allowing both to form complete valance shells.