You can eat a protein bar before or after your workout, but eating it an hour or two before you exercise will give you the energy you need to fuel your workout, especially if your protein bar’s carbohydrates are from whole grains or dried fruits.