That’s the basic idea. You’ll still get some heating of tissue as ultrasound waves pass through other tissue but won’t be destructive.
Radiation therapies use similar principles but non-target tissue is still exposed to ionizing radiation which causes collateral damage.