Snakes in general are head shy, from my experience the younger ones being the worst. Some will eventually grow out of it to the point of you being able to "pet" their head all you want and others will get defensive when you touch their head. It all depends on the individual snake.