This is exactly the reason I did it. We didn’t have “snack food” on tap, so if I was hungry (or bored) between meals, I’d raid the kitchen cupboards to see what I could eat straight out of the packet. Dried pasta was one, and Oxo cubes were another. (I still have a weakness for Oxo cubes!)
I like to crunch on uncooked spaghetti too. I also like eating raw pasta before it dries when making it from scratch. I’ve never gotten sick from either.