Shunt resistor and power supply

Hi, on a complex board where fitting a shunt resistor is very difficult, a possible approach can be don’t power supply the device using a regular way but powering only the micro using the JTAG VCC and GND and connecting the shunt on JTAG VCC?