Yes, a certain amount of space is necessary for the door to function properly. However, the gap shouldn’t be too large. The recommended space on the top and on the sides is about 1/16 inch and about 5/16 on the bottom.