Yes it should work. ol.source.WMTS is an exported symbol.