I verify this, some years ago when my laptop’s hard drive died, I installed Ubuntu Linux from a USB drive (with a live image on it) to a USB drive. It took a while for it to boot but it worked and I used it as my main machine for a couple of months.
But beyond that, there are Linux distros made specifically for running off of external media, Puppy Linux is an example.