Only new oak and treated softwood sleepers are recommended for vegetable gardens, but reclaimed sleepers have been used for decades. You would need to be sure there is no Creasote, oil or tar present in the sleepers, so it best to avoid reclaimed sleepers for this application.