No. 'Teacher' is the object of the preposition, and the preppsitional phrase is an adverb. The indirect object is directly related to the verb: She gave him a punch.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.