Is it possible to stream audio from a Linux PC to a phone and use the phone's microphone to the computer at the same time?

I plug my headset into my phone and play audio from my computer to my phone so I can use some apps from my phone (via scrcpy) and still be able to listen to music, sound notifications from chat apps on Ubuntu.
Now I want to use Discord/Skype on my Linux, and connect my phone’s microphone to Ubuntu.

Is it possible to use these two functions at the same time?