Yes, the okapi and horse are distantly related. Both belong to the order Perissodactyla, which includes odd-toed ungulates like horses, rhinos, and tapirs. They share a common ancestor from about 55 million years ago.
However, they have evolved into very different species. The okapi is actually more closely related to the giraffe than to the horse.