It depends - if you don't close off the container you'll end up feeding the entire neighborhood (geckos, lizards, frogs, etc.) but if you don't you may end up with soggy, moldy bedding. So if you can figure out how to provide ventilation while keeping your insect stock yours alone, you can probably get away with it.
I think it goes without saying that they shouldn't go where they get blasted by sun all day long either. It can get super hot in a container very quickly when in direct sun.