How can i use arduino as UART to USB converter while uploading code to ESP32CAM?

Yes i did that. Also, I was doing that connection while i was using Arduino IDE.