The soil may be safe, but probably needs to be revitalized with beneficial microbes and nutrients. This can be accomplished by breaking up the present soil and adding (you may have to remove some of the present soil if you don't have enough room) nutrients and beneficial microbes. Ingredients such as compost, worm castings and a fertilizer formulated for whatever you plan to grow will help.