yes, that should be correct for the order id session. it sounds like the code may be in the wrong order on the confirm page.
make sure that the Universal Email code block is after the store order summary and store order details code blocks, it sounds like the UE code block is before those 2.