Not really - Medicaid is at least 50% Federal $, and can be as much as 75% Federal $, depending on the number of people in the state that meet the eligibility guidelines (generally expressed as those falling within some multiple of the federal poverty level - usually 133% but as high as 261% if infants are part of the household.)
So, when CA gets generous, it is merely harvesting the tax dollars of residents of other states.
It's a mixed bag. Meaning, California delivers more tax revenue to the feds than it receives, benefitting other states on average. California has such a large economy that it is larger than many countries. We pay taxes to the federal government, same as in other states, but we pay a lot more than other states. Some of that trickles back to California but a lot of it goes to poorer states. So, Peter in California is giving money to Paul in other states. Maybe Peter should just keep all the money in California. (But Peter everywhere should kick out freeloader Pauls, especially "illegal criminal aliens".)