Crying generally involves a lot of noise. So in situations where the noise is not acceptable due to time, place, etc, it's certainly reasonable to tell the child that they need to stop crying, or you might have to take them to a place where it would be acceptable for them to cry.
Of course one should recognize that there are injuries and hurts that are overwhelming for a child, and while you could ask them to stop they may simply be unable to. In this case I recommend understanding and taking care of their needs rather than worrying about the crying itself.
Note that children learn cause and effect in regards to crying. If crying always works to get your attention, but other things don't, then crying will become the method they choose to use to get your attention. As such, if crying bothers you, become attentive to their other attempts to communicate distress or need for attention, and try to tend to them before they turn to crying.
In my family there's a big difference between a cry of sincere distress or pain, and a cry for attention or unhappiness. For the latter, how we respond depends a lot on the situation, but we teach them that crying isn't an acceptable way to get attention unless they are hurt, and while crying itself is fine and an acceptable emotion, we suggest they seek ways to resolve the problem, rather than simply crying about it. If they are using crying as a method to get their way, we indicate they will need to do it elsewhere. For us, crying isn't allowed to be used to manipulate others into getting your way.
Asking them to share their feelings and then to think of ways to resolve the problem often resolves simple crying, and give them the tools to deal with it themselves as they grow.
In other words, yes - there are times when crying is an inappropriate response (or less effective response) to a situation, and being told to stop crying is reasonable.