The phone will probably use more power while searching for a wifi system to connect to, but you may or may not notice the difference.
If a wifi system is available, the phone will prompt you to connect to it. The first time you connect to a given wifi network, you will need to enter a password for the wifi network. Your phone will remember that password the next time you try to connect to that network.