Of course.
You may tell the doctor that I'm not here for that. You may also tell the doctor to stay in their lane. Usually both are necessary. Then you can move on to coercive care and ethics and torturous business practice if they persist. At this point you should ask for a new practitioner to see you or have a meeting with the business manager and explain you expect not to be billed on account of the doctors behavior. Then find a new doctor.