Not exactly. Here in BC, after sales were completed realtors were taken to court for failing to disclose the units were in fact leaky condos. The buyers won damages. In the house I purchased recently, the realtor made the point that it had the potential for secondary accommodation when in fact these suites are illegal. Had I made the purchase on the premise of this suite, yes, I have recourse.
As I said this won't end well.