We have never felt the need to put a lock on our barn door but yes it is possible! You can do a simple hook and eye latch or you can purchase a sliding barn door latch.