Yes. Firefox comes with Enhanced Tracking Protection, which reduces some types of advertisements and eliminates some trackers and ads. It does not, however, stop all advertisements. Use browser plugins like uBlock Origin or AdBlock Plus, which offer extra ad-blocking features, for more thorough ad-blocking.