Usually a short period of rest relieves the pain. If it does not then see your doctor.
Most of the time walking get the heart rate
up and this increases blood flow to the body. Make sure you don't walk right after eating. Let the food digest. Note when you get the pain after the walk. Stay hydrated. If pain persists after walk see doctor.