Have two valence electrons and get to a stable electron configuration by using two electrons?

an element with 2 valence electrons can obtain a stable electron configuration by "kicking out" two electrons to have the same electron config as the noble gas in the previous period