It doesn't matter when you exercise, as long as it suits your schedule and you are able to get enough sleep. Sleep is important!
Also, surrounding carbs around your workout, pre and post, coupled with protein is important, regardless of time you workout.