Thanks for writing your query.
After reading your post, it seems that you are having soft tissue injury
, but still there is no harm in getting an X-ray done to rule out any fracture
which is antiinflammatory medicine and will help in reducing the swelling and pain.
Try to give rest to the injured part for speedy recovery.
You can apply crepe bandage locally to give support to the injured ankle.
Application of pain relieving gel will also be beneficial.
In hairline or vey minor fracture, it is possible that you are able to walk (though painful).
So get a X-Ray of your foot done and get yourself examined by an Orthopedician.
I hope this is helpful to you.