Is alopecia always hereditary?

No. Can be due to hormone imbalance, infection, mechanical damage or immune problems. Thyroid problems are at the top of the list.