Is it ok to hit on girls at the library? If yes how do you do it successfully?

In between classes at university I go to the library to get some work done but I often notice cute girls there as well. So how would I approach them? Is it true that headphones mean don't bother me?
Is it ok to hit on girls at the library? If yes how do you do it successfully?
Post Opinion