Blocks in programming impact the scope and visibility of variables. Variables may have a specific scope based on where they are defined in the block.