Of course it can be done if the wall thickness is satisfactory but not economical or practical. What a lot of old timers did was to freshen the barrel. There are a couple of ways to do that, polish the inside and then cut the groves a little deeper. I have heard also and know a person that did the following. He put a metal ramrod all the way down the barrel trying to keep centered as good as he could. he then poured about 4-6 inches of molten lead down the barrel and let it cool down completely. When cooled down the ram rod and lead can be pulled out of the barrel. A person must mark which grove lines up with the marks on the slug. The slug of lead is then coated with valve grinding compound and the inside of barrel is polished. A person may have to go to a slightly larger projectile or thicker patch. The gun would probably not win any matches but as I was told can make a serviceable barrel. The best way to correct is get a new barrel. You can get a good quality barrel and fit a breach plug, solder on the thimbles and rib, install nipple and or flint hole and finish. All of of the above can be done but much more practical to get a good gun to begin with, unless gun has some special meaning to the owner.