> the dots and dashes to be clearly distinguished from each other
Yes, spaces are part of the morse code spec. It looks like a binary encoding but in fact it's ternary.
We can invent a 5-bit (or 6-bit, to include numbers and punctuation) morse-like code to avoid needing spaces.