Currently, yes.
In the future, possibly not.
See https://discourse.gohugo.io/t/7891/74.
The Go maps.Keys and maps.Values functions are still experimental. When they are no longer experimental, I think it would make sense to create matching template functions in Hugo.