You need to tie the opening shut if you plan to leave them unattended, though. Even then, they can get out, the slippery little bastards.
This reminded me that when I was a kid, my best friend had a privacy flip lock on the outside of his bedroom door. I remember asking about it, but I don't remember what he said. I'm guessing they locked him in his room when he was sent to his room for being bad.