I mean, anything is possible, but nowadays ads are hooked into all sorts of analytics software that determines how long an ad is on screen and things like that. You could try and implement something like what you're proposing, but it would show up as weird metrics on the advertiser's side.
Ads are already in a sandbox (iframe), so you could just make a little extension that sets iframes to display: none and give it a whirl if you wanted to test an MVP.