Use an external WIFI dongle as a hotspot

Is there a way to use a wifi dongle and set up the hotspot so it uses this dongle ?
With or without root, it doesn’t matter.