Is it legal to burn trash at home?

No. If you live in a urban area it is illegal. If you own a farm and need to burn agricultural trash you can on certain days and a license is needed. In many places today you can't burn firewood in a fireplace. All of this is due to air quality.