Yes, you are correct that in ancient Rome, "IV" was sometimes written as "IIII" on clock faces to avoid using the same abbreviation as the sacred emblem of Jupiter. The IV in Roman numerals indeed represented the number four, but it was also recognized as a symbol for the god Jupiter due to its similarity with the Latin word for "Jupiter," which is "Iovis" (or "Jovis" in its older form).
In many ancient Roman sundials, clocks, and monuments, rather than using "IV," which could be seen as a reference to the supreme deity Jupiter, "IIII" was used to write the number four. The use of "IIII" was more about religious or superstitious avoidance than a rule of Roman numeral usage.
This practice was specific to certain contexts and was not applied universally. It's an interesting historical detail showcasing how beliefs and culture influenced even practical aspects like timekeeping and the use of numerals in ancient societies. In modern usage, however, the standard representation of the number four remains "IV" across all platforms including clocks.