Do you close your lo’s bedroom door at night?

So my daughter is three and we just got her an actual twin bed. Whenever we put her down we usually just shut the door, but now that she is getting a “big girl” bed I’m wondering if I should keep the door open. She doesn’t know how to open door knobs yet and I don’t want her to feel like she’s stuck in there and I feel like closing the door on her is almost cruel. Right? I also want to leave the door open so she can go to the bathroom when she needs to, once we start nighttime potty training. However, I don’t want her to keep leaving her room to crawl in my bed. I may be thinking about it too much. What should I do?