Do you have to break a law before challenging it?

Hypothetical: Assume a state passes some law that many deem to be unconstitutional.

In order to challenge the validity of that law in court must you first run afoul of it? That is, do you have to break the law before having the right to challenge a law? Or can someone (or somne group) bring a lawsuit ahead of time seeking to block enforcement of the law till the courts can rule on it?

In order to challenge a law on Constitutional grounds, one must indeed have standing. This is not necessarily the same as having broken the law – one must have been injured by it. This is why groups such as the ACLU seek plaintiffs and defendants who meet the requirements – the court has no jursidiction to hear the arguments if there is no case to decide.