Yes. But the answer gets complicated, fast.
The general rule in Social Security is that if you earn on average over around $1,300 per month, they consider that as "substantial gainful employment", an amount the government roughly equates to full time employment. For this type of work, you earn "work credit." Earning "work credits" is how you become eligible for SSDI. The formula is complex, but I have never seen the government make an error on computation of these credits. These credits are used to calculate a date called your Date Last Insured, which SSA will tell you if you ask. It probably will not mean anything to you, but it means a lot to me, and I can explain the relevance of this date in simple terms when we speak.
Even if you do not have the needed work credits for SSDI, you may be eligible for another program. Be sure and take a look at my description of What is SSI? to see if this may be for you.