Time to get SSDI

I had tried to get ssdi and even though I had plenty wrong and. The job person said I could t work still got denied. It’s been several years later and my dr is wanting to get a gene test. I figure if we find something id try again. Someone told me if you don’t work for 7 years you’re not eligible. Is this true?