Using php do_shortcode function to show something on specific course ID's only

Hi,

Is it possible to use php do_shortcode function to show something on specific course ID's only?
For an example I have a short code for a slider. I want to display it site wide but except for some courses.

Is this achievable?