A:Answer WiFi and cable are 2 entirely different things. You must pay an Internet Service Provider (ISP) for internet access, such as your local utility company or Verizon... And That source of ethernet into your house plugs into your router. The router then designates IP addresses for all devices on your network and transmits WiFi wirelessly and even has 4 LAN ports for hardwired connections.
So to answer your question; no, you do not have to have cable to have WiFi. In fact that is why so many Americans are "Cutting the Cord" and switching to Netflix, Prime Video, Hulu, Sling TV, etc. instead of paying for 350 channels and only watching 6 or 7 of them.