You can do that even now! Gboard has had Morse as an option for years.
I have been looking for morse code keyboards for smartphones and I have only found one that was good, and it was an early iPhone thing that hasn't worked on modern iPhones for years.