Um no. But to smile and say hello to a woman you find attractive in a book store who is coincidentally perusing your favourite genre, is there something wrong with that?
A simple smile and greeting at a book store is fine. But ideally the next thing you say should be something about the genre, books on the shelf, or authors who write those books, rather than a personal remark.
If the conversation continues, fine. Maybe work up to "would you be interested in continuing this conversation over coffee in the food court?" (just an example from my own personal experience, as the last time I met a guy in a bookstore, it was at a mall).
If the conversation doesn't continue, just chalk it up to a brief, pleasant "smile and hello" and go on with your day. You haven't lost anything except less than a minute that would otherwise have been spent saying nothing at all.