Garmin Fenix 6X Pro

Am I buying the ideal model for hiking? And does it have the function to traverse the path and return you?