Junk food will definitely help you gain quickly, but most junk is full of sugar so you'll end up gaining more belly fat than anything else. Having excess belly fat causes metabolic issues like diabetes, high blood pressure, etc. so it's best to not gain weight this way.