Do I listen to Dr?

Br

I just took my 3 year old daughter to the dr today for other issues, but I brought up that she’s been waking like 5-6 times a night. We have a child lock on the door so she just bangs and knocks on the door until we come in. Its 99% of the time for nothing, she just wakes for no reason. I asked the dr what I should do and she said just let her knock. If she’s dry and needs nothing, don’t answer the door and basically let her cry it out.

Now if that’s actually what I should do and what she needs to understand then I can try that. But I just wanted to double check here I guess? Is that what I should do? It’s been like this for about 2-3 months now so it’s not a phase. Please leave your opinions and anything I can do to help with this! Thank you!