If the verb in a sentence is a linking verb like “to be,” the part after the verb is technically not an object, but the word order still applies. The subject comes first, then the verb, then the rest of the sentence.
Sally is a doctor.