Catch widget events on Okta-hosted sign-in page

Can you catch sign-in widget events (ready, afterRender, etc.) on an Okta-hosted sign-in page or will that only work on a self-hosted instance of the widget?