Can corporate bodies use residential properties as office space?

It is illegal to put residential properties to commercial use. However, service-based industries are allowed to operate from residential areas.