This kind of exercise that keeps a posture for a period of time is called isometric exercise, and its function is to exercise muscles. Muscle will tighten after exercise, but it will not help to burn fat and reduce legs.
To reduce your legs, you can do it. Let's go. As long as the walking time is long enough and the speed is fast enough, you can achieve the effect of losing weight and burning fat and stovepipe.