That’s basically what I do with Domino’s Pizza.
I order it online, and by the time I get to the store, it’s ready.
I love their little Order Tracker for delivery orders