UX and UI design are related but not exactly the same.
UX design involves managing the user journey as they interact with a product or service,
while UI design focuses on the actual construction of that product or service's interface.
UI design is usually considered part of the UX design process.
UI refers to the screens, buttons, toggles, icons, and other visual elements that you interact with when using a website, app,
or other electronic device. UX refers to the entire interaction you have with a product,
including how you feel about the interaction.
Hope it answers your question