a weight gainer and eating a bunch of garbage will gain you weight of course. but it won't be good weight and it will wreck your gut in the process and insulin sensitivity.
thats not how i teach it
my teaching is get on a good workout program, eat healthy nutritious muscle building food, and get plenty of high quality sleep. set a goal to grow 10 pounds over the next year or two