Should you be able to take off from work whenever you feel the need to get your hair done? As long as you have the Personal Time to do so, yes.
It was the last half hour of the day so not much harm was done anyways.