phrase or theory that describes "if he can do it then so can I"
Solution 1:
In a competitive context, you might call it one-upmanship. If you're referring to the person doing it for social acceptance just because his friend(s) did it, it's peer pressure.
Without the social acceptance aspect, we simply have the neutral term peer influence. Here's a paper on it from a web search.