Do I really need to an in person appointment every 30 days for a refill?

Is it by law that you need an in person appointment every 30 days or they cannot refill a controlled substance prescription? It's hard enough making multiple reminders and alarms just to remember to go but people have a life too. It would be a little better if my doctor would do virtual every 30 days.