Yes, it works while the plugin is deactivated.
Now i tested it also with ids of attachments and it works fine, but still if I add only [gallery id="xxx"] it does not work. Strange, ain’t it? Just like if polylang still filter the language of attachments.