If I am in a nursing home, is it too late to give away my assets and qualify for Medicaid?

If I am in a nursing home, is it too late to give away my assets and qualify for Medicaid?