Conditional loading of script and css files

I am developing a small plugin which is supposed to implement a shortcode.
I understand how scripts and style files are enqued. Here comes the question...

Is it possible to arrange that plugin defined scripts and styles are loaded only on the posts and pages where plugin implemented shortcode is used?