You have to live to collect it. Someone could pay into SS for 50 years, die at age 67, and never collect a dime except for a small burial allowance.
My mother passed away at age 61 paid in her whole life and never collected a dime.