Is this traumatizing for her?

I was reading up on how to make my toddler (2 1/2yr) sleep on her own + stay in bed because she would wake up 3-5 times a night and walk straight to my room. I read on a few mom blogs that closing the door would help and it has. She doesn’t come to my room anymore, if she wakes up during the night she puts herself back to sleep. She’ll whine for maybe a minute but go back to sleep. It’s been like this for 2 weeks now and I’ve noticed that when she knows it’s time for bed, she cries and says she doesn’t want to go “night night”. She’s never done this and I know it’s because she knows I will leave her and the door will be closed. Is this traumatic or is it okay? I’ve read alot of different things and I’m starting to feel upset about it now..