That was good advice when public libraries were less used. But these days (at least in the American cities I frequent), they are massively popular.
Which means if you reserve a new release, be prepared to wait. Even with 17 copies of a particular newish book, the wait for it from my local library system is in excess of eight months.
Wait eight months, or drop $11.95 at Amazon? Easy choice.