Yes, you can use rust and bluing remover to remove cosmetic rust inside a barrel. You can also use Naval jelly (phosphoric acid).
However, please be advised that using rust remover (acids) to clean the inside of a barrel is a desperation measure. I would never use it on a barrel that had any accuracy potential. For a battered muzzleloader, it would not hurt anything.
John