Of course it is better to get all nutrition from real food, but we all know that that is sometimes impossible (we'd be eating all the time!). Therefore I would say it is fine to use a protein powder, just make sure to find one with good/ natural ingredients and not full of sugar!