Yes, it's completely legal to make money cleaning houses and earning cash provided you declare your earnings as per tax laws of the place you live in and file tax return as per that.