That differs from person to person and you'll have to find out for yourself.
I enjoy the late afternoon hours when most of my colleagues are already gone, the phone rings not as often and I can put some music on headphones. Takes me about 15 minutes till I get into the flow state and am highly productive.
Likewise and I have to add that mornings I am usually not very productive anyway, regardless of the environment. I've been working from home for the past few Covid months and the bulk of my work is done in the afternoon. That's not very convenient for me as I'd like to enjoy my time off after 5, but I usually end up past that to take advantage of the momentum built.