At 32 weeks, ankle and foot pain that eases with rest is usually linked to pregnancy weight gain, fluid retention and loosened ligaments putting extra strain on your foot while walking. It is common and not usually a sign of anything serious on its own.
Next Steps
Rest with your foot raised, use supportive flat footwear, and try a warm foot soak or gentle ankle stretches between walks. Shorter, more frequent walks help more than one long one right now.
Health Tips
See your obstetrician soon if the swelling is only on one side, the calf feels hot or tender, or the pain doesn't ease with rest.