Yes, that part seems really important, defining the separation between the things that you do and your sense of self identity sounds like it's a critical part of creating a healthy sense of self esteem.
Looking inward it feels like I still struggle with this pattern of thinking sometimes, as I suspect many people do (the feeling of "that project failed" vs. "I'm a failure, this project is evidence of this fact" is worlds apart).