The reasons why WiFi often doses not work with Raspberry Pi are extremely diverse. Starting with the hardware detection up to the WiFi configuration. When troubleshooting, a systematic approach is recommended. Even if the problem is somewhere in between.
Most WiFI adapters for the USB are able to run on Raspberry Pi. But there are always exceptions. Some wireless adapters prove to be completely inappropriate on Raspberry Pi. It just helps to use a different wireless adapter.
Not all WiFI problems have to do with WiFI. Thus, a non-functioning Internet connection with WiFI must have nothing to do.