Hi Ginny,
No doubt about it, Euphorbias are plenty poisonous. I assume that this is how it is able to repel gophers and moles.
Lots of people grow some Euphorbia species (and other poisonous plants) as houseplants. It's just important to know what you have, and then take the precautions you deem appropriate for your situation.