Hello,
Yes, you can detect the user location using the HTML Geolocation API.
Your website will have to ask the user for permission on order to access the location.
Depending on the library used to display the map (OpenLayers, Leaflet) there are multiple ways to center the map once you have the location.
Ionut