Unless there is a new miracle machine, that answer is flat wrong. How does the machine "detect" the amount of oil charge shipped with the compressor? How does it know if the compressor is new, or original?? Horsefeathers!
Usually you are required to drain as much oil out of the old compressor as possible into a measuring cup or graduated cylinder, and then drain ALL the oil out of the new compressor (into something clean), and then replace (match) the exact SAME amount into the new compressor that was drained and measured from the old compressor.
This insures fairly close matching of the total system oil charge, as there are several places (evaporator, condenser, receiver-dryer) that can harbor oil. Since the new compressor usually comes with a full vehicle oil charge (the documentation will tell you), installing the new compressor without removing the appropriate amount will result in too much oil in the system. Depending on the capacity of the system and how much extra oil was added, this can result in anything from no difference, poor cooling performance, all the way to severe belt drive and/or compressor damage.
The machine would have to be clairvoyant, and would need to remove excess oil shipped with the new compressor - not add more with the refrigerant charge.