quick workout question

I usually go to the gym around 5 but should I eat a light dinner before or after the gym?