As long as they have a c/o Certificate of Occupancy for the bathroom, yes it is legal.
If you need any other information on the house you are asking about, or any other property, feel free to contact me. It would be my pleasure to answer any questions you have, at no charge.
Licensed Real Estate Agent
Prudential Douglas Elliman
email@example.com (personal email)
firstname.lastname@example.org (office email)