Fortunately, yes, the Ubuntu 22.04 package repository includes Ruby, so you can easily download and install Ruby from the Ubuntu repository. Installing Ruby from the Ubuntu repository is the easiest way, but it deprives you of using the latest version of Ruby.