It's perfectly acceptable to cook shrimp with the shells still on them. Of course, you still need to devein the shrimp to remove the shrimp excrement. I actually find that shrimp shells have a lot of shrimp flavor and I do leave the shells on for many of my recipes.