You always have to order dessert at the time of the meal, or the entitlement is "lost". In a few cases, you can get (as noted above) a receipt stamp that allows you to come back for a frozen item, under the philosophy that you don't want it melting before you finish your meal.
Of course, I have a better solution for that: eat dessert first!