Write a python program to check if a given number is an Armstrong number or not.
def is_armstrong_number(num):
    digits_sum = 0
    num_string = str(num)
    for digit in num_string:
        digits_sum += int(digit)**len(num_string)
    return digits_sum == num