Exactly; it's the quantity, not the quality of the food that is the issue.
You don't have to eat unhealthy stuff to gain weight.