Yes and no. Criminal law properly defined is when the state is the plaintiff in a case. Penal law is that subset of it that governs “crimes” in the normal usage of the word.
But within the category of State vs. John Doe cases, a variety of categories are used. First, treason is generally an offense unto itself, “outranking” in its heinousness any other crime, as it is an offense aimed at the injury to the state itself. The most serious of crimes (except treason when classed separately) are felonies. Felonies for which the death sentence can potentially be imposed, or carrying a life sentence, are capital crimes. Somewhat lesser but still serious crimes are misdemeanors. In most legal systems, these are the two (or three) kinds of crimes. But there is generally a class of offense lower than misdemeanor, variously termed “infraction,” “violation,” or “petty offense” among other usages – there’s no consensus among criminal codes. Disturbing the peace, public intoxication when it was a crime, trespassing on posted land without criminal intent, are examples of the sort of “crime” that fall into this category. Penalties will of course vary but often call for no or minimal jail time, only a fine.
Traffic offenses such as speeding, unsafe passing, failure to obey a stop sign are “criminal” violations in that they are State vs. Joe Motorist court cases. But they are generally not “penal” violations – crimes sensu strictu. However, many if not most states regard the more heinous of traffic offenses as misdemeanors (and rarely felonies) – driving while intoxicated, reckless driving, these sorts of offenses.
Likewise, environmental laws are usually “criminal” in the sense that the state, in the person of the enforcement section of the state’s environmental agency, prosecutes offenders. But the outcome is to get the polluters to stop and/or pay hefty fines (often used in rehabilitation of polluted areas). And again the classification is not generally in accord with the criminal law generally, but for severe offenses may be deemed a misdemeanor or a felony. (Willfully and knowingly discharging poisonous toxins into a municipal water supply, for example.)
Zoning laws usually class their violations as civil rather than criminal in nature, the municipality in its corporate capacity suing for remedies rather than seeking prosecution. But my experience with such laws is that they generally have a virtually unused section that provides for criminal prosecution, presumably when informal and civil-law efforts to correct a problem have failed. Elmwood or others may have more relevant information on this, as my experience was fairly limited in geographic scope.
As Dr Deth notes, almost every code has a section/article/title/whatever providing for penalties. Whether it’s the state’s construction standards or the legal procedures for operating a hydroelectric plant, it’s been codified and enacted into law, and violation of that code is a non-penal “crime.”