True, which is why I am hesitant to believe that electrons have some kind of “intelligence”, or hocus-pocus, to detect observation and behave accordingly.
No individual particle (or photon, or unit of other form of electromagnetic radiation) does. The observed patterns are the result of probability, played out over millions of discrete events.