If you are constantly in a calorie surplus - consuming more calories than you burn each day - then you will gain weight, however, without exercise, this is going to mainly be in the form of body fat. Plus, this fat will not just go to one place, it will be spread across your whole body. In order to specifically build your bum, you should consume the right foods but also regularly train your glute muscles, ideally with some form of resistance.