Yes, Hermione invited Cormac to make Ron jealous and then she spent all her time at the party trying to escape.