The right shoes can correct a problem. Wear stable shoes with proper arch supports and cushioning. The shoes should be designed for the activity and your foot problem. For example, running shoes would not be right for playing basketball because they are designed for forward motion. Playing basketball requires side to side movement.
Basketball shoes provide that stability to the foot and ankle.
The same concept is true for walking shoes. Don't try to use walking shoes for jogging because there won't be enough cushioning in the sole of the shoe to absorb the shock. They can make foot motion more efficient and correct structural imbalances. Orthotics can relieve discomfort and reduce the risk of foot injury. A podiatrist or orthopedist should prescribe and fit them to your foot.