Yes, but sometimes the iTunes method is not working for many unknown reasons. Basically you should have iTunes installed on your PC and connect the two devices with a USB cable. And the first step is to put your iPhone into recovery mode.
To guarantee the success of resetting, LockEraser is no wonder the best choice.