Yes.
And then each time she acts that way, do the same thing.
You also have to tell her, BEFORE you go to a store, that it is not to buy toys etc. And that, screaming about something, gets her nothing. Then a kid may say "if I don't scream and am nice, can I get something?" (my kids would say that, because to a young child it makes sense). BUT so, you ALSO have to explain, that no, even if they are nice it does not mean they get a toy, each time.
Because THEN, you will get into another.... vicious cycle of them expecting something EACH time they are "nice."
SO then, you have to, teach a child that buying toys is NOT a given. It is NOT according to if they are nice or not. And that, behaving is not based on toys or buying stuff. Because if you do... then each age they get, even if older, they will equate getting a toy, to each time they are nice.
AND then if they don't get anything, they will not do it. Or they will only do things IF they get a toy or reward.
So for me, I don't teach my kids that they get a reward/toy each time per if they are nice or not. Life does not work that way.
Behaving in a FAMILY, is about, learning to behave and being respectful and doing what needs to be done etc. As a child gets older, they have to learn that. Even in school.
A kid can't go through life, and then become an adult, thinking that each thing they do gets them a "toy" or money or etc.