This depends on the specific employer. Some workplaces may be fine with it, while in others it may not be acceptable. You should seek the consent of your own employer.