Yes, I think it is. "On moving out," is a participial phrase.4. Is the comma OK in : “On moving out, they threw a huge all-night party.”?
Much like in:
"Sniffing the fresh air, Jim realized he had found paradise."
Hope this helps
Student or Learner