Absolutely, hair transplants are routinely performed for this reason. The graft survival can sometimes be slightly lower than a non-scarred area but it works well.
I have transplanted crainiotomy scars on many patients and the results are very good. In the past 5 years, I have found that Scalp Micropigmentation is a better approach to these scars. See web reference below