Will restoring my iPhone on my iTunes unlock my forgotten passcode?

I put a new passcode on then stupidly forgot it and nkw I can't get in because i'm getting it wrong.
I've read to restore it on the computer which I'm doing now but i'm scared it won't work.
What do I do if it doesn't?
And will it work?

No harm in trying it but if fails then you will have to take it into apple

  • IPhone won't restore? Forgotten passcode? I forgot my passcode for my iPhone 4s. I have tried to restore it, but it keeps saying that the phone has a passcode on it and and you need to get rid of it before you can restore it. But because I have forgotten the passcode, I can't do it this way. But when ever I try and do it through DFU mode, the same message still comes up half way through 'extracting files'… Any other ways?
  • Iphone 4s passcode forgotten? I have an phone 4s and yesterday evening I turned on the passcode and yesterday I came home ad tried to log in into the mobile and I forgot my passcode. I tried several times and then finally the mobile said connect to itunes and with big letters on top of it Iphone disabled What I'm going to do? I want to use recovery mode but i don't know how. Please send me information or pictures or videos… Please
  • I've forgotten my iPhone 4 passcode, what should I do? I recently changed my iPhone 4 (iOS7) passcode and I've forgotten what I changed it to. Is there a way to bypass the passcode screen or just get rid of the passcode altogether? Also, if I were to restore the iPhone to factory settings then restore it from a backup of the iPhone, will it still keep the passcode?
  • How to unlock my iphone 5 as I forgotten the passcode? So now the problem is that I forgot my passcode and now my iphone is locked up to now. Can anyone explain to me how do I unlock my phone? And if like what my father said that all the memory will be lost is there any way to prevent memory loss?