Eating a peanut butter sandwich at any time of day is beneficial, but it's best to eat it before or during your hike. If you eat one before hiking, it can provide you with steady energy while walking. You'll want this if the hike is long and strenuous.