Legal or not? URGENT

I wouldn’t have a problem with doing the shift but would never take pills to either stay awake or send me to sleep. There might be no sound basis in science for them having any detrimental side-effects but I just don’t like the general idea.