Can you move blocks with a command so that they do not come back to a block, but that the block will move by 0.5 coordinates
No. The "grid" of the blocks is fixed and can't be moved around 0, x.
That's fine.
However, not with a command, but only through a resource pack.
It is possible but then you can walk through the block because it is then an entity (so called Falling_sand or something) I can tell you more exactly when I'm at home