No, while both involve feelings of compassion, pity can sometimes be viewed as looking down on someone, while feeling bad for someone can be more about genuine concern and empathy.