Yes, this is permitted for removing armpit hair and pubic hair, because the
point is to remove the hair. Any means of achieving the desired result is
permitted, although the best way, which will receive the most reward, is to
shave the pubic hair and pluck the armpit hair, as is reported in the Sunnah.