这个句子用过去完成时吗?

问题描述:

这个句子用过去完成时吗?
He_____(give) her a ride,so she invited him to have dinner.

had given
give这个动作在invited之前,所以这里用过去完成时.