Not necessarily.
One way of doing this is to set SelectedItem property in the datagrid xaml to a property on your view model which implements INotifyPropertyChanged. Then set the xaml binding mode to two way.
Then if you click on a selected item it will trigger a change from the xaml binding to update the value in the view model