Protein shakes????

So im trying to gain weight and I bought some protein, will I gain weight if I just drink it without exercising? I know I want a bigger ass and thighs tho so if I do workouts with that, will I even gain weight?