If the router doesnt block DHCP and/or DNS for those network segments, it should work.
EDIT: worst case, you can configure a bridge interface on Pi-hole that has a leg/connection to both networks.
EDIT2: below posting describes a bridge setup.
Though I made a mistake and the WiFi SSID and password should be configured in the wpa_supplicant config file.