Using php do_shortcode function to show something on specific pages

Is it possible to use php do_shortcode function to show something on specific pages only? Say for an example I have a short code for a slider. I want to display it site wide but except some pages.

Is this achievable?