No this is more complex that this, but still very elementary. When you fuse two protons, you gain 2.22 MeV which is the binding energy of the deutron. Look at this picture:
http://www.alaskajohn.com/physics/charts/binding_energy.jpg
When you go towards iron from H, you bind the nucleus harder and harder, so when you fuse togheter nucleis up to Iron, energy is gained. You get more energy than you put in. But if you fuse two nucleis heavier than iron, the system is more loosley bound, and you get less energy than you put in.
Standard thing you should know in introductory nuclear physics.