There is some evidence that waiting until an adult has reached skeletal maturity, which for a female dog occurs around the same time as the first heat cycle, is beneficial for bone and joint development and could decrease the risk for orthopedic disease in the future. This is relatively new research however, and if you have reasons to want to schedule the surgery now it should be fine too - many shelter animals are spayed when they are 8 weeks old prior to adoption.