Oreo dirt pudding with gummy worms can be prepared in advance and stored in the refrigerator for up to 24 hours. However, it's best to add the crushed Oreo cookie topping and gummy worms just before serving to maintain their texture and visual appeal.