It varies. Some apps have this feature enabled by default, while others require you to enable it in the settings. Also, it could be affected by your device's operating system settings.
Not all apps show a notification when you screenshot a story. It really depends on the specific app and how it's been configured. Some might show it to prevent unauthorized sharing, while others might not have this functionality at all.