The circulation of three books is a kind of book borrowing behavior with books as the medium. It is legal, but in some cases it may involve copyright issues and needs careful consideration. If you borrow books from your own library or bookstore, it is legal. These institutions have the right to buy or rent books.
If you buy or borrow books from a third party, this may involve copyright issues, so you should consider it carefully.