Yes, that is fine. You could also write your group in the cycle notation as a product of disjoint cycles . In this notation it's preferred not to write cycles that have only one entry. Any missing element is mapped to itself.
.
which is the same as your answer in array notation.