No matter what the exterior of your home is (brick, stucco, etc.) you need something between the exterior and your interior walls to keep water out. That's where flashing comes in. This article from HGTV will give you more insight as to how flashing works.