'Are Ethereum block numbers consecutive from genesis 0 ... Latest?

If I use w3.eth.getBlock('latest').number to get the latest block_number, will 0 ... block_number include the entire universe of Ethereum blocks? This answer seems to suggest this is the way to get a wallet's transaction history.

results = {}        
block_latest = w3.eth.getBlock('latest').number
for block_item in range(0,int(block_latest)):
    # check each block for matching transactions
    # and return them in result
    results[block] = result


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source