I forgot my passcode and I put my iphone 4 in recovery mode?

So It was in recovery mode but it switched and now its doing a ''iphone software update'' after its done doing this update will it let me restore it?

Added (1). And no you don't have to put the passcode to restore it there's another way to put it on recovery mode even if you forgot your passcode

Don't you have to enter your passcode to restore it on itunes

Open iTunes hold the power button and home button at the same time for 15 seconds it will enter dfu mode click restore on iTunes and it should reset to factory worked on my iphone 4th gen