When you are prescribed medicine for thyroid problems, are you on it for life?

Or only until the problem goes away?