Quick answer...of course it can...I'm assuming you have an original type Trooper and not the later Mark III or Mark V. The Python started out with the same parts...they just received some extra attention in fitting. Now...if you mean changing a Trooper .357 into a new 2020 Python...then no. The action...while similar in appearance...is very different and no parts I'm aware of are interchangeable.
There are things that can bring your Trooper to Python levels of smoothness but it's just as easy to screw it up as well. Leave that to a qualified gunsmith. If you want to try it yourself...get a copy of Jerry Kuhnhausen's book on the Colt DA revolvers...Part One. I wouldn't rely on YouTube for how to do it...far too many ham-handed bubba gunsmiths out there giving instructions on how to ruin your gun.