Yes if you cut the nipple off the inner cable at the drum/disc end and then fit a screw fixed cable nipple (you will find them at a moped shop)to operate the handbrake mech on the caliper, you will also need to fit a concave washer onto the outer cable to stop it pulling through on the caliper as well.
Although this sounds like a lot of work, it is quite straightforward and easy, you will see exactly what is needed as soon as you offer the old cable up to the new caliper.
You can also take this opportunity to back the cable adjusters under the handbrake lever right off, before you fit the new nipples at the other end.