It will be advisable to take an xray as trauma may lead to bone fracture, Depending on your bone strength and impact of injury. Also even if the fracture is not there see a doctor to confirm any soft tissue injury or contusion.
If it's a fracture your doctor will guide you line of treatment according to the type and extent of fracture. If not so, great! If there's soft tissue injury something to ligament tear then the treatment will be different. But mind you that don't take soft tissue injuries lightly as They may get chronic.
Lastly if it's just contusion from injury .. you are safe..The swelling and pain in this case will reduce in 3-5 days time.
Next Steps
Get an Xray done
Health Tips
Take ice packs
Keep your leg elevated by using pillows
apply crepe starting from toe to knee end