Yes, it's possible to have a visually appealing site (good UI) that is difficult to use (bad UX). For example, a website may look beautiful, but the UX is poor if users can't find what they're looking for easily.