Weight loss and protein shakes

Do you need to be drinking them protein powder shakes for weight loss when you’re just focusing cardio or only when you do weight lifting ?