Not a good idea trust me! My previous cat I used to have was locked in a bathroom 24/7 with 2 other cats for most of his life! He had to always fight to eat enough, and was harassed by the other cats because they had little or no space to feel comfortable, thats like sharing a bed with 2 other people, not very relaxing! With that said, if you must lock them if your at work, fine, but when your home they should be able to roam, but if the room they can wander in is dangerous to them, then you must try and make it a little safer.