Probably. Labeling the links could make things less ambiguous, though. Either, "This website is supported by affiliate links" under the links to amazon. Or "I did this for fun but won't be able to host it w/out support. Please consider using this affiliate link to help out" and then providing both.
It's not super clear from the website whether this is something you did primarily to learn about data analysis, learn about HN's book recommendations, or to make money. Any of those is fine! But the motivation is likely to influence the outcome (even unintentionally) and it's something that could be made more clear.