Can a building owner's violation of a building code ever be used to help me win a New York trip and fall case?

The rule is that if a defendant who you're suing violated a regulation or a statute or an ordinance, that can be some evidence of negligence by itself in a claim against the property owner, so, yes, that is very important and helpful to you in winning the case if you can prove a violation.