In previous models of the iPhone from the iPhone 5S all the way up to the 6S plus it was possible to replace the home button with only loss of the fingerprint sensor however in the iPhone 7 and upwards it is unfortunately not possible to replace the home button as when it is replaced the home button will no longer function with either touch id or the home button function. This can be seen on a number of websites including ifixit who did an article on this issue. Click here to see more.
If you have an issue with your home button (on the iPhone 7 or above) we highly recommend visiting Apple who can replace and reprogram you a replacement home button. Click here to see more