Madi+McSherry

To my understanding, when atoms bond to form compounds, they bond in their electrons by joining where an energy level is not completely filled with electrons. Does the bonding of atoms occur only in the electrons or are there other ways that atoms bond? Or am I completely wrong in my original statement?