Yep, it's the same with pets. If they kill a mob alone, you won't get any exp.