Sorry, I did not read the GUEST post correctly.
Railroad ties certainly are treated with poisonous chemicals such as creosote. If they have been used by the railraod for years, very little will leach out, but some might. Best to use them near decorative gardens, not vegetable gardens.