Yes, an object of a preposition is considered compound if it consists of two or more nouns or pronouns (e.g., “I’m going hiking with Vera and Jonas”).