It's a good analogy (from my limited understanding, that really was how it was presented in Japan at the time.. At least for a short while) but I dang hope it's not an accurate one. The blunder of Pearl Harbor was eloquently put by this famous quote:
I fear all we have done is to awaken a sleeping giant and fill him with a terrible resolve.
So the key question now is whether Iran was a sleeping giant with more resources to pull from, or if it's really defeated now (or soon to be). I personally believe Iran can't win a war against USA, but it's not going down without a fight. I'm no authority on the matter though, I might be dead wrong.