Although you may be correct, this has not been scientifically proven. To my knowledge, there are about 4 hypothesis as to how anemonefish avoid being stung by anemones. What you have mentioned is, however, probably the most accepted hypothesis.
One this is for certain...the anemone does not...