Short answer, yes, it will work.
Slightly longer answer:
- Immediately after the binary job of A for a specific platform had finished successfully the binary job of B will run and use the Debian packages created by the other job.
- For the devel job of package B the all the binary jobs for that platform have to have finished (and no major regression has occurred). That is usually the case within the day.