The simple answer is yes. Interior barn doors can be locked using a sliding barn door lock. Some barn door privacy locks are only on the inside of the door, while others allow you to lock the sliding barn door from both sides. Being able to lock a barn door makes it a viable solution for any room in the house.
Do sliding barn doors have locks?
A single-cylinder rim lock helps for locking the door from the inside or the outside. A simple latch style lock can also work very well to lock up the sliding door. Unfortunately, most sliding barn doors don't come preinstalled with locks and you'll have to sort that out yourself.
Are barn doors too trendy?
The impracticality of barn doors outweighs their aesthetic.
Barn doors started cropping up in homes as part of the trendy modern farmhouse movement. But designers say that people are moving away from the farmhouse aesthetic because of how overdone it is, also making the doors feel dated.