UX centres on user behaviour and how people interact with a product or platform. On the other hand, Customer Experience (CX) is about understanding the customer's journey, expectations, and relationship with your brand.
UX is just one component of CX. By first understanding your customer's journey, you can then improve your digital experience accordingly. If you don’t offer a top-notch customer experience, your business may suffer as a result.