No. Burning chemically treated or painted wood is not safe. Finishes, varnishes, primers, and other kinds of coating for wood turn toxic under the influence of high temperatures.