Yes, most adverting on the net today is provided by services which automatically try to tailor the ads to you personally. The data can come from cookies/browsing associated with the site you're on, cookies from other sites, or info shared from third parties (like social media accounts).
All highly automated and nothing personal. We got some porn ads here a few years ago, IB intervened to ensure their ad service disabled that.