Any deep puncture wound can cause tetanus, or lockjaw. Tetanus cannot be diagnosed by blood test. The recommded procedure is to immediately get injected with tetanus immune globulin.
Obviously, it can create a wound that can become infected. The biggest risk would be for tetanus, if the person stepping on the nail is not currently innoculated against it.