Do command blocks stop working at a certain distance?

Solution 1:

Command blocks follow the same rules as other blocks, in that they will stop running if the chunk they are located in is unloaded.

This question asked something similar. One solution that was suggested there, by @MBraedley:

The chunks surrounding the world spawn are always loaded, so this is the best place to put command blocks that you always want to run. You can change where the world spawn is using the /setworldspawn command.

Solution 2:

Alas in bedrock command blocks do not stay loaded when you get too far away even if placed in the world spawn area. I tried it experimentally and the commands stop running if I get too far away. I however did find this post which says you can add up to 10 'ticking areas'. This works like a charm in bedrock! Will upvote the answers since the do look like they would work in java edition and you led me in the right direction.

/tickingarea x1 y1 z1 x2 y2 z2 chunkName