Yes, you can. Most people usually go with instant noodles and bread. There is free boiled water for instant noodles.
PS: If you go on weekends, I suggest you open the door in the library, because you will learn a lot in the study room of the library on weekends, and you won't be able to grab a seat if you go late.