My raspberry pi box is connected to a WiFi (wlan0) and i connect to it remotely (through Wireguard). Is it possible to connect to a new WiFi from the terminal on wlan1 (USB WiFi dongle) while staying connected on the WiFi that keeps me connected... No GUI, only terminal.

My computer Wireguard ► RBP box wlan0 WiFi ► connect to new WiFi with wlan1 while connected to the RBP

Thank you