from typing import List


def all_one_aligned(digits: List[int]) -> bool:
    """
    Checks if all the 1 are aligned from the beginning of the list.
    """
    to_check: List[int] = digits[0:digits.count(1)]
    return all(x == 1 for x in to_check)