It is possible to program a blockchain to record transactions automatically. Yes it is possible. Bitcoin transactions can be recorded automatically in a blockchain