Basically, yes it can. But it also depends on what you eat and what type of metabolism you have. Some people, no matter how they try cannot gain weight, while some gain it quite easily. People mainly gain weight from eating bad food, if you eat a lot but your diet is very diverse and has many nutrients, it will not affect your health.