Is it a good idea to take a pure whey pretein shake with maltodextrin (complex carb) 30-45 minutes before your workout? (for added energy in the gym)

23 grams whey?
25 grams Maltodextrin?