What decides the answer is the order of first aid: first, whatever threatens life right now. Once the scene is safe, the first thing to do is check whether the person responds and is breathing normally. Everything else depends on that: if they don't respond and aren't breathing normally, they need an ambulance and CPR, and the leg can wait. If they are breathing, next you check for heavy bleeding and stop it. Only after that do you immobilize the leg