Lacking any further detail, and given the considerations above -- probably yes.
That's essentially what my last gadget does,
https://www.eevblog.com/forum/projects/finished-current-limiting-breaker/msg1373360/#msg1373360with an added time-out feature so that it opens the circuit eventually.
But it's made for bidirectional operation (doesn't matter which way you connect it up), has protective devices to control overcurrent and overvoltage, and filtering (partly for operation, but also so it doesn't mind what the circuit around it is doing).
An electronic load might be missing some of these features, might not appreciate carrying reverse current or overvoltage, might not respond that fast (or responds too fast and becomes unstable on some loads), etc.
Tim