Develop a program in Python to check whether a string contains only digits.
"0123"
def is_digit_only(string):
    for char in string:
        if not char.isdigit():
            return False
    return True

print(is_digit_only("0123"))