Provided that the conditions are right for the break to heal completely, a broken bone or fracture can actually repair itself but it is important also to seek medical attention right away.
The only way to (almost) guarantee a fracture will heal cleanly and leave the bones in the right place is to visit a good hospital as soon as possible.