it depends on your device and your car
some work with Bluetooth, others need a cable
With my iPhone 15 and my Kia Sportage for example, I can connect the phone to the car via Bluetooth for doing phone calls, but I need to connect it via cable to use CarPlay