Yes, of course!
Most modern Ad scripts will use this method and it's fully supported on Shifter.
What about WordPress Plugins for Ad affiliates such as Google or Amazon?
If you use an advertising WordPress Plugins that displays ads based on particular pages, posts, etc. that should also work.
As always, we recommend giving it a try using a demo site within a free account or asking our team for help.