Any program designed to change your body weight should include both diet and exercise. You have to increase your level of exercise to increase muscle mass.
Throughout your life, your weight and whether it's made up of fat or muscle will depend on the ratio of what you consume and how much exercise you get.