Genetics aside, diet and nutrition are about two thirds responsible for how much you weigh and exercise is the other third.
If you don’t have your nutrition and calories accounted for, exercising will not be too helpful in losing weight.
Pretty much..I always joke it's 99% diet and 99% working out..but you are right.