The specifics will vary greatly depending on your employment agreements and legal jurisdiction, so make your own decisions regarding your own situation (doing it on company time might be the lesser risk compared to not doing it at all), but do be wary.