Yes, the 180 p/c will fit a 170. Makes a little sleeper out of it!
I did the same thing on a 290 I repaired for a buddy. I put a 390 top end on it. He was very happy with it. Lot more power with no added weight. And he got a complimentary decomp valve to help his aging sore shoulder!! (I had to use my Dremel tool to carefully cut a hole in his top cover for access to the decomp valve.) He was happier than a gopher in soft dirt!!!