@suratguy it all depends on the damage etc. but yes, it sounds like you need to replace the switch as well as the power flex. Check something like [https://www.youtube.com/watch?v=Uk0eSYi1IY0|this video] for the How-to. The button and the flex are available at places [https://www.aliexpress.us/item/3256802627620820.html?pdp_npi=2%40dis%21USD%21US%24%201.29%21US%24%201.29%21%21%21%21%21%40210318ea16816674206056848e993f%2112000022317852534%21btf&_t=pvid%3Ac7b594d6-1de8-4a68-9096-1107da5729e9&afTraceInfo=1005002813935572__pc__pcBridgePPC__xxxxxx__1681667420&spm=a2g0o.ppclist.product.mainProduct&gatewayAdapt=glo2usa&_randl_shipto=US|like this] and many others.
While you replace those parts, take lots of pictures. Once you are done with it, take those pictures and create a guide for iFixit. That will help the next person that has the same problem as you do. It's easy and fun to create these guides. https://ifixit.com/Guide/new The iFixit community will appreciate this.