Yes, you can do it. Theoretically you can be offloaded starting at T-30, so I'd be sure to cancel before that. Should be doable online/via the app.
If someone makes a habit of doing this, UA may revoke their status. Doesn't look like that's a concern here.