Is Ritalin addictive?

I (19F) was prescribed Ritalin. My doctor said I should take it daily for a couple weeks, increasing the dose every week until it works for me, right now I’m on 10mg twice a day.

He said that after I found the dose that works, I could take it as needed and skip it if I want to, and that it’ll be completely out of the body after a day so there’s no way I could get addicted or get withdrawal if I don’t take it. My question is, is that true? Won’t it stay in my system for longer?

I don’t want to ask my doctor since he’ll just give me the same answer again and I wanted to know from people who have actually taken Ritalin. I struggle with anxiety that’s why I want to avoid any kind of withdrawal induced panic at all cost.