In this case, running sandboxes does not consume resources when idle. There is no state, and the containers exist only for the duration of the "run" operation.
If no state is cached and running a cell automatically reruns all its dependencies from scratch, that's the equivalent of a clean rebuild when using a makefile. It might be too slow to use interactively if you're doing anything heavy. It's how continuous builds work, though.