There is nothing stopping you from giving gifts at any time, but you will not be able to qualify for Medicaid as soon as you divest yourself of assets. You will be ineligible for a period of five years after you give large gifts.