A receding hairline is usually caused by hormone imbalances, changes in Testosterone Levels and receding hairlines can also be hereditary.
So if your dad had a receding hairline then you're likely to have a receding hairline as well.
But yes being stressed out too much or suffering from anxiety can cause your hairline to recede.
There's many hairline regrowth and hair regrowth products on the market that work to bring back your hair and reverse the process of the receding hairline.
Rogaine is a good hair growth product that can help with a receding hairline but there's many others.