Quitting the pill

Do I need to go to the doctor to let them know I’m quitting or can I just do it. I’ve taken it for five years but idk if that matters