Yes. You increased your DHT levels. That's a well known hair loss factor. However, according to this website it's not just the increased DHT but an imbalance of both your testosterone and estrogen levels that you likely caused.
https://perfecthairhealth.com/men-stop-thinking-your-hair-loss-is-due-to-high-testosterone/