It is possible for the AI to get into your room and wait for a bit inside your room before jumpscaring. It isn’t impossible to have them come in and close the door.
It worked like this in the original game.