Wood can be used for cooking in many situations. You can cook in a fireplace if the chimney is sound. Do not light a fire in a fireplace that has a broken chimney and always check that the damper is open. If you are planning to use a wood stove, make sure the stove pipe has not been damaged and make sure the damper is open. If you must build a fire outdoors, build it away from buildings and never build a fire in a carport.
Sparks can easily get into the ceiling and start a house fire.
Never use gasoline to get a wood or charcoal fire started. Make sure any fire is well-contained and that you have a readily accessible source of water nearby. A metal drum or stones around the fire bed are good precautions. A charcoal grill is a good place in which to build a wood fire. Be sure to thoroughly extinguish any fire when you are done.