If I don't exercise after eating whole-grain pasta/regular pasta, will I gain weight?

If I don't exercise after eating whole-grain pasta/regular pasta, will I gain weight?
Post Opinion