Are sty's hereditary?

Can you answer this question?