Not while on duty. Like alcohol or some other prescription drugs.
Every one of these professions, except medical doctor, requires random drug testing. A positive test, no matter when usage occurred, is grounds for being fired. THC remains in adipose tissue for up to six weeks.