Yes, many 40L backpacks have compartments specifically designed for laptops or tablets[1][2][3]. For example, the Thule Landmark 40L Travel Backpack has a laptop compartment that can fit a 15-inch laptop with a sleeve on and a pocket for a tablet[1]. The MATEIN Travel Backpack also has a separate laptop compartment that can hold up to 17 inches[3]. The Inateck 40L 17 Inch Carry On Travel Backpack BP03001 also has a padded laptop compartment with a soft tablet sleeve[2].