As far as I can recall, the answer is no. If you mention which code you are interested in, you may get a more specific answer. It is, of course, done. There is a new standard on repair that is being developed which includes pipe straightening using flame, but that is probably at least a year away from publication.