If my spouse is going into a nursing home, can they transfer all of their assets to me and qualify for Medicaid?

If my spouse is going into a nursing home, can they transfer all of their assets to me and qualify for Medicaid?