As a beginner you should focus on your diet first. Try to take keep your diet on point in the early stage and after a period of 3-4 months of proper training and diet add whey protein
in your diet. And keep in mind whey protein is just a supplement it cant replace your actual foods so don't neglect core foods after including whey protein in your routine.