You seem to understand CSMA/CD quite well - but before describing how things work in a switched environment, I'd like to break it down for other readers who might not know.
CSMA/CD stands for
- Carrier Sense
- Multiple Access
- with Collision Detection
When multiple devices are all sharing a network cable, usually only one at a time can transmit. This used to be very common in Ethernet networks where a network cable would run along each side of a building, with many workstations tapped in to it. This is the "Multiple Access" part of the term.
Think of a bunch of people in a meeting, or a group of friends at a party. One person talks at a time, while everyone else listens. How do we (as people) do this? You listen briefly to make sure no-one else is talking. If the room is quiet, you start talking. Listening for other people talking is "Carrier Sensing"
Sometimes, someone else (who also verified that the room was quiet) starts talking at the same time as you. This is a "collision". Because you are still listening while talking, you realise what is happening (you detected the collision). Sometimes once person realises before the other, and they stop talking while the other continues. Sometimes both people detect the collision, and they both stop talking.
Network interfaces do the same. When they want to transmit, they first check to see if the line is quiet by trying to sense some other device's carrier signal. If the line is quite they start transmitting - while still monitoring the line to make sure that they "hear" what they are "saying". If they detect a collision, they stop, wait a little bit, and then start listening for a quiet time again. To reduce the chances of a collision happening again and again, each device waits ("backs off") a random amount of time.
Hubs
Hubs allow you to connect multiple network cables together. Sometime this is to extend the usable length of the cable, sometimes to make the cabling layout easier, sometime other reasons. Sometimes each cable connected to the hub has multiple devices on it, sometime each device has its own dedicated cable to the hub.
One way or another, though, the signals present on any cable are instantly repeated by the hub on all other cables. So we still have a case that only one device on the entire network can talk at a time. We say that even with hubs, we still only have one "collision domain" - and we still need CSMA/CD.
Switches
When switches are used (as they are in most modern Ethernet networks), a few things are different:
Each cable connected to a switch is not directly connected to all the others. This means that a device talking on one cable does not interfere with a device talking on a different cable. Each cable is its own collision domain.
Very often, each cable connected to a switch is only connected to one other device. Each device has its own dedicated cable and its own port on the switch. This is particularly true in networks using "UTP" cabling (most Ethernet networks today). You can only connect two devices to a UTP cable, and the switch is one.
Also very often, the cable involved actually consist of two "channels". in "modern" UTP (as opposed to the older coaxial cables we used decades ago), there is a set of wires for the switch to transmit on, and a separate set of wires for the other device to transmit on. So even the switch and the terminal cannot collide with each other. This is called "full-duplex".
The switch has memory (RAM). When you transmit a frame, it can be stored in memory until the switch's software is ready to forward it to another cable or cables. So two devices on different cables can transmit at the same time, and the switch will buffer each transmission until it can be sent on. (Incidentally, the switch doesn't have to wait until it has received your whole frame before it starts forwarding it.)
Possibly the biggest advantage of switches: They know which devices are on which cables. (They work this out dynamically and automatically - you don't have to configure this information.). So, if device A (on cable 1) is transmitting a frame to a device B (on cable 2), the switch will only forward that frame to cable 2. None of the other cables will be affected. This means that a device on cable 3 could be transmitting to a device on cable 4 at exactly the same time. And a device on cable 5 could be transmitting to another device on cable 5 at the same time as both of the previous, without affecting any other cable on the network at all.
And finally - the answer
The upshot of all of this is that if your device is the only device on a full-duplex cable connected to a switch - it can transmit whenever it wants to. It has exclusive access to a pair of wires for its transmissions, and it lives alone in a private collision domain. As you said "it just puts the frame on the cable."
It is up to the switch to decide which cable (or cables) to forward the frame to, and to buffer the frame for each destination cable until that cable is ready. The only time a collision-like event happens, is when the switch is already forwarding some other frame to that cable, and your frame has to sits in the switch's buffer a little bit longer.