They are a replacement rechargeable battery where Nickel Cadmium types were used. They tend not to suffer from the 'memory effect'. This is the condition where a cell does not supply it's stated...
It can be done, but it is not recommended unless the device is specifically designed to use either Ni-Mh or Ni-Cd. It will result in a shorter lifetime and it may not be safe.