Yes! You are correct.

Hydrogen ions (protons) are being pumped from the matrix to the intermembrane space. This unequal concentration increases the potential energy present in the system for making ATP later.