Timber is carbon that a tree has pulled from the atmosphere.
As long as it stays in a building, it's not going back in the atmosphere.
Planting trees and turning them into timber is a form of carbon sequestration. As long as it doesn't burn or decay...