Actually, it depends on the type of electricity being spoken about. Static Electricity? Yes, it is which is why your hair may “stand out or become straighter” after coming into contact with an electric body.
When we speak about electric charges that flow continuously dry hair is an insulator and are not able to conduct electricity. But wet hair is more efficient at transferring electricity, even though they’re also proton semiconductors in the best of cases.