If the box is fairly small, then you will want to vent the top at the very least to help remove hot air. If you are using a larger box with more interior room than you actually need, then you can get away with keeping it sealed.