It’s okay to put out food at any time, but if you can, try to make sure that there is bird food accessible early in the morning and again when dusk approaches (especially during winter and autumn).
Birds need to be either refueling lost energy from the night (remember, breakfast is the most critical meal of the day) or acquiring enough energy to get through what may be a long, cold night at these times in particular.