I hadn't thought of it that way, but you make a good point. In a way, Peter and Snape both fell in with the wrong crowd because of the House they were Sorted into. Perhaps if Peter had been a Hufflepuff with friends who were truly loyal, he would have turned out differently.