Effective or not, it will be depending on how the government manage it because to make gambling as a source of income for the government, it requires good management.
In general, gambling may give income from various things such as tax, license, tourisms, and some other things.
It means that if a government can manage it well, gambling can be an effective way to recover the economy of a country.