In a word: "absolutely"!
These pesky violations can often be difficult to uncover and even tricker to satisfy. If there was ever anything that could be "grandfathered in", is your inheritance of any violations or open permits any previous owner has left behind.
Although a home in this condition could be a great bargain (after all, violations could be a great way to pick up a property at a deeper discount), one must know how to properly take care of it or know the right people that can help you with it.
A good title agent or closing attorney may be able to help you uncover these. Some may be easy to cure, while others may be deal killers. Just make sure you follow all previous advice.
Just don't back out yet. If you really like the property, tie it up with an offer if you have to, then make sure that during your inspection period, you bring a good inspector and even a reputable contractor to help you evaluate the extent of the work required to cure a violation or close an open permit. These experts will also help you uncover any other potential issues that you should watch for.
Then, do the math, renegotiate your offer or move on.