Yes they cans serve as on the ground protection, but walls didn't stop air bombardment.  Israel will have to deal with drones eventually and their walls won't stop drones any better than they have rockets.  Walls may keep Palestinians out of Israel, but not their rockets.