Yes you can both apply for the pay and leave.
Gallwch wneud cais am y tâl a'r absenoldeb.