Hide collections based on previous orders

Is it possible to hide certain sections/blocks on the site based on a customers previous order history?

E.g. if someone buys a product that belongs to a certain collection, I want to be able to hide that collection in the future, and show them a different collection instead. Is there a way to do it with Shopify Liquid or is there an app for that?

Thanks.

For anyone looking for a solution to this I found an app that seems to solve my problem:

https://apps.shopify.com/customer-tagger