It depends on the notification. Some notifications allow you to take actions like replying to a message directly from the notification.