import re


def is_valid_id(id):
    """checks if an id is valid

    Args:
        id (str): The id of a note

    Returns:
        bool: True if the id is valid
    """
    if re.match(r'^[0-9a-f]{9}$', id):
        return True
    else:
        return False