does this statement make sense? to get a book you must go to the office.

Yes, the statement "To get a book you must go to the office" makes sense. It means that in order to obtain a book, one needs to physically go to the office.