Enable/disable sentry dynamically

Hello,

Is it possible to enable/disable sentry dynamically in JavaScript.

thanks.