Yes, `XModule` and `XModuleDescriptor` both inherit from `HTMLSnippet`, which defines `get_html`.