There's a pretty basic order on some parts that must be followed but I don't think it matters if you do the headset before the bottom bracket or hang brakes before derailleurs.
For me, sourcing parts and having components cleaned and prepped usually dictate more of the build order. I'm usually building wheels toward the end and the last things I always do are cables and bar tape.