Protein shakes can be a convenient way to get in some calories and protein, which may help you weight gain and build muscle. But also in this case, they are not a magic food. It all depends on your overall caloric intake, training routing and lifestyle.