Yeah, I went all of last semester without buying a book. Just went to the library and used the books on reserve for problem sets. All my exams were more heavily focused on lecture material than book material so it wasn't a problem.
On that note: libraries are awesome.
--
No amount of planning will ever replace dumb luck.