Stopping the pill

I want to stop taking the pill but don’t know if I’m supposed to talk to my doctor first or if I can just stop taking it.

Does anyone have any advice?