Looks good, but it doesn't translate to "did I do something wrong?". It sounds more like someone accused you of doing something wrong, and you're responding: "What did I (in particular, as opposed to everyone else) do wrong?" The emphasis is on you.
I think 나 잘못했나? (Did I make a mistake?) is better