Yes, charcoal can be made emiting almost only CO2 and Water vapor. But you need very dry biomas and an efficient kiln and youtube has many instructional videos about how to make one. Kilns can be made with recycled barrels, cob, bricks and maybe other materials too.
Be sure to charge it with
compost and to use biomas not contaminated with heavy metals. Organic contaminants are not that dangerous becouse they are destroyed at hi temperatures.
Good luck.
Oh and do a serch, I am doing one right now and I see some topics on the forum about biochar.