Yes,
hittman makes a good point to save you some $$ when buying a cylinder on the open market place,, BUT if measurement is not close or preferably a bit long, you will spend a lot of money making it work, but it can be done.
Now if you want to buy a 9mm cylinder from Ruger, thier policy has been the gun needed to be a convertible originally (357/9) a call to them with your SN# will answer that question. While your on the phone "ASK" the worst they can say is no. You will have the cost of shipping the gun to them to have it fitted, on top of the cylinder.
Now the big question is why? when 38 special can virtually match 9mm velocities. Yes 9mm can be found a little cheaper, but one has to shoot a whole bunch to have it make financial sense.