No. You don’t owe anything until the coffee is in your hand.
Or until they cancel the transaction.
If you order the coffee, they say “okay that’ll be $2.87”, and you try to pay with cash, they can cancel the order. Poof, no debt.
Now if they drop the check at your table after you’ve enjoyed the cup of coffee, it’s different IMO.