Walking

Does anyone know if walking 2 miles a day will help me lose weight? I can’t really do anything else besides diet because I had a c section and just got cleared to go for walks I can’t really do any other exercises yet