If you need to stay awake for 5 hours and have no physiologic reason to avoid stimulants i don't see this as bad per se.
However, repeated use or dependency might make you wonder if something else is underlying. Clearly there are many conditions and medications which would make taking stimulants unwise. Mixing other psychoactive drugs including the illegal stuffs and alcohol
probably not good.