Yes, it will work in each case. The extension has observers before the output of the CMS block and CMS block widget. That is why it works not depending on a method the block was added on a page.