UI is literally the interface – the screen/s that you use to interact with a product. UX encompasses the entire experience (that UI + the rest of the journey). So essentially exactly what you’ve said, but UI isn’t always the ‘front’ page.
Interaction design refers specifically to the design of digital products, whereas UX can mean any experience.
Does that help?