Yes. If your bed is against a wall, there will likely be a gap between the wall and your mattress, box spring, and frame. This gap needs to be blocked off to prevent smaller dogs from crawling into the tiny space. One method of blocking the gap is by using a flat panel door under the bed.