Can stress lead to hair loss and what can be done to prevent it?

Can stress lead to hair loss and what can be done to prevent it?