It can. Locks help pull the sash or panel into the frame so weatherstripping compresses evenly. For performance context, the U.S. Department of Energy and ENERGY STAR both explain that windows and doors are rated for energy performance, and tight engagement supports those envelope goals.