No Google won't penalise for things like that, however if you have several links all within a short time all going to the same domain, might raise their suspicions
@OP: if you would have to buy an ebook would you search for "xyz ebook" or would you search for "someebookwebsite.com"? think it and that's your answer.
you should choose your domain as an anchor only if it is a Branded domain that people are looking for. if not then use keywords