Yep, but be sure to watch a couple of "tear down" videos first, just to make sure you're good.
I'm a pretty good "fix it" kind of guy, not afraid of a soldering iron, rebuilding tons of mechanical and electrical and other. The 6P teardown is pretty "finnicky" though, you have to heat and carefully remove the glued parts at some junctures, and there are a LOT of posts of people who broke their camera glass, camera units, etc.
Not saying you shouldn't repair it, but be aware that it's not a "simple fix" to swap in the USB port. The part itself is cheap, most of them are, the battery, camera glass, etc.