They gate-check to the final destination? Of course you can get it back: simply ask for it. medication is a wonderful reason, toiletries, what have you. You might have inadvertedly left your wallet inside. It's carry-on luggage after all. Of course you need it in ORD.