You can usually walk normally in a few days after breaking your foot.

As shown in the picture, the recovery time after a broken foot needs to depend on the severity of the broken foot, as long as 3 months, and as short as about a week to recover.
After breaking your ankle, you should brake your ankle in time and go to the hospital for X-rays or an MRI to see the specifics of the sprain, and then implement targeted treatment.