uBlock Origin supports[0] both network filtering where requests to an ad cdn or domain are blocked before the network connection is ever made, and it also supports cosmetic filtering where elements can be hidden after the fact - but this is mostly for blocking intrusive popups or dialogue boxes and the like rather than for blocking ads. The vast majority of filter lists that come with uBlock Origin are network filters where ad domains are blocked outright. As uBlock Origin uses the Adblock Plus filter syntax it's not difficult to use ABP filters or to port hostfile filters over.