As long as you use a firepit that keeps the fire contained safely and elevated off the wood structure, it can be safe to have a pit on your deck. A fire should never be started directly on a deck without protection underneath and on the sides. Always follow your fire pit’s manufacturer instructions and best judgement.