I have been watching Ben eaters breadboard computer videos and have trying to figure out something for a while. When he shows the instructions, he shows an example of a LDA instruction which takes a value stored in RAM and puts it into the A register. I was confused because the LDA instruction has an operand that points to a memory address that has a value. My question is how the program counter later doesn't just execute that value that the LDA instruction points to. I know there are answers to this problem but can never find one that really explains my question. Also the reason I want this is because I am trying to build my own breadboard computer in my free time.
I have had a few ideas but haven’t come up with a solid solution. I looked it up but couldn’t find anything useful.