No, cryptomining is not a crime. Stealing electricity in order to illegally mine cryptocurrency for personal gain, however, is a crime known as cryptojacking.