Yes, performing a hard reset means reset your phone to the factory default settings , which will erase all data as well as the screen password.