there is no indication in the story that that is the case
Well let's use a bit of logic and context clues
It was at least a day between the time they left Wano till they made it all the way to Egghead even if it was the same day
Law left Wano at the same time the strawhats did and black beard ambushed him on his way to whatever island his log pose was pointing to
So we know it was at least 24 hours between that fight and his arrival on egghead if we are to assume it took a full day between each island
And then while they where on egghead another 24 hours passed
So at least 2 days has elapsed since law got rescued by BB