Yeah ideally you wanna rub it with seasoning or get it into a marinade at least an hour hours before cooking it so that osmotic forces help draw fluids out of the meat and then back into it (with flavor from the aromatics)
You don't necessarily need to marinate that long (and too long can negatively affect the final texture as things break down with the acidity and salt) but it kinda depends on what you're doing
What the people I work with should be doing is marinating shit for the next day ahead of time or at least getting the meat cut and ready so that as soon as they come in they can toss it in seasoning and let it sit out for a couple hours. It'll come up to room temp around the time to throw it in the oven which will help it absorb more flavor and also cook more evenly
But what they do is stagger on in, get the meat ready, then season it right before it goes in the oven