Wow, that really had to hurt! Nails will usually grow back if they have ripped off or were removed. However, the nail probably won't look the same as it used to, and it usually takes several months for it to completely grow back.
Please keep the injury bandaged and watch out for any signs of infection.