These analogies do work sometimes, but biologists struggle to fit "computer code" based analogies into what they are studying. As it turns out, biology is rather unlike computers in a lot of ways.
Some interesting videos for laymen:
Michael Levin - Cell Intelligence in Physiological and Morphological Spaces https://www.youtube.com/watch?v=jLiHLDrOTW8
SubAnima - How NOT To Think About Cells https://www.youtube.com/watch?v=jPhvic-eqbc (this channel has a lot of other great explainers)