Will cloudbase-init run before sysprep finished?

Cloudbase-init seems to be running before rebooting when "Setup is installing devices" phase finished by checking its log file.
I have enabled sethostname plugin which required reboot, so no there's no extra reboot for me. Is it an expected behavior?