Yes. While it’s not the usual situation that someone in a younger generation gives gifts to someone in the older generation, there’s no tax rule barring this. In fact, under tax law there’s no bar to gifts being made by minors.
When debts are cancelled in bankruptcy cases, the cancelled amount is excluded from gross income. Tax attributes are certain losses, credits, and property basis that must be reduced to the extent of the exclusion.