Anything that is wet for long periods of time can mold. I do a full substrate change when my snakes shed because they usually dump their load and empty their bladders around the same time![]()
As long as the substrate isn't moist all the way through, it should be fine to keep in there for a month or so.