Yes, sodium chloride is a compound. It consists of two elements—sodium and chlorine—chemically bonded together. The sodium atoms lose an electron to the chlorine atoms, resulting in a net ionic bond. This means that the compound is made up of positively charged sodium ions (Na+) and negatively charged chloride ions (Cl-), which are held together by electrostatic forces.