Yes, raw potatoes are indeed toxic. Especially when green, but really at any time they're uncooked, potatoes contain a class of toxic compounds called glycoalkaloids. One of these, solanine, is also known for causing problems with the nightshade family of plants.