Agreed. In addition this:
End of the phase: Rules that specify that they take place at the end of a phase only take effect after any other actions that would take place in that phase have been completed. This means that it is not possible for a player to make use of any rules that would take place during a phase once an end of phase rule has taken effect.