I don't think it matters but it can't hurt anything. If it makes you feel more at ease then do it. Now that you brought it up, I'll probably do the same when I sell my 3gs.
Edit: I'm talking about my iTunes password. The email password is definitley not necessary.