Don't give up
When you consult with a physician skilled in the care of the human voice (a laryngologist), that visit will include an examination of your larynx (voicebox).
Appopriate treatment is determined after you know the diagnosis; 'hoarseness' is a symptom, not a disease. There are causes of altered voice which require surgery but, the majority don't. You won't know until you are evaluated & advised.