ESP32 DAC signal

Certainly; however it would be more interesting if we knew what you are trying to achieve?
They will need to have a common ground.