Move marker google maps

Is it possible to capture coordinates moving the marker in the google map? and copy them to the fields in the form
thanks