007 is the code name. James Bond is not a code name. Just a singular character throughout the series.
The death of Bonds wife in On Her Majesty’s Secret Service for instance, is referenced in future films with different Bond actors. Bonds reaction to that wouldn’t make sense if it was an alter ego.