No, this program is designed to count digits in a whole number. If you want to count digits in a decimal number, you would need to modify the program accordingly.