It's more like waiting 2-3 days after roasting. Beans should ideally be used within 2-4 weeks of the roast date, with darker roasts/blends being more forgiving.
Though that's me preparing drip coffee. I'm not trying to get the perfect crema on a shot of espresso or something.