A Wifi network just links local devices together. There may or may not be internet available in the network, but you need a internet provider if you'd like to connect to the www.
If you'd like to learn more about Wifi as it sounds like you are very inexperienced, consider building a piratebox at https://www.piratebox.cc/doku.php
or buy a ESP8266-based development board and play with it. Both are cheap ways to play with wifi and learn about networking.