Depends on the cause
Headaches have many causes, serious and not so serious.
Overuse of computer screens, can be a cause. One might try reducing the brightness of the screen so it is easily seen without glare. Also, check your seating position. If your neck is over flexing or extending it can be the cause of headaches. Take as many breaks as feasible away from the computer, and if the headaches persist, get checked.