The fire pit will be fine, but I would suggest against it. If it's older pressure-treated wood, for example, the arsenic-based fumes will do some serious damage to your lungs (among other body parts). You don't know what type of paint was used, and even if you do, do you know what toxins are created when you burn it? Probably not...