Otherwise, moist inside air could condense on the cold rim joist (band joist). The resulting dampness can lead to mold and rot. If you have a solid concrete foundation, also run a bead of caulk ...