It produces an increasing amount of oil from offshore fields. Well some is. But its real value is as a source of a petrol substitute called ethanol - which is produced by a complex process directly from the cane. Brazil has its share of renewable and non-renewable sources of energy.
Wood is another.
You can burn it for home heating or even to produce electricity - but you must make sure that sufficient trees are planted to replace those cut down. Non-renewable sources of energy include coal, oil and natural gas. Look at table . It gives statistics about Brazil's energy sources, renewable and non-renewable. The problem is that to extract the pure gold or iron from their ore, you need very high temperatures.