No, this is not a particularly good thing to do if you are a lawyer. A similar thing happened in Harris County about 20 years ago (now I'm showing my age). The lawyer who was caught in the compromising position was sanctioned by the Bar, lived down the sanction and went on to sit on one of the appellate courts residing in Houston. In this day and age he would have been indicted for any number of things, but it was a simpler, kinder (and probably less enlightened) world in those days.
Since then, a new jail (one of several) was built without the option of semi-private consultation rooms. Much hell was raised about the need for attorney/client privacy, but the above described episode was the constant response by those who designed the jail.
I am not defending the idiot barrister who was caught with his pants down, but it is amazing what offers an attorney gets when his clients reside at county expense. Having spent several years working in the criminal defense world, I still chuckle at some of the depraved acts promised. No, I did not accept the offers. My then spouse was already looking for ways to cash in on my life insurance.