Can I walk on foot after a sprain?

Depends . On how bad of a sprain.
Not all spaghetti. Is the same. Some "sprains" can be pretty bad and require a cast, even surgery if the ligaments are torn, while other sprains heal themselves in a couple of days. It's always best to get checked by a doctor before proceeding. You don't want to do more damage. Good luck and feel better!