Based on information attributed to author J.K. Rowling, yes, Draco Malfoy did have secret feelings for Hermione Granger that influenced his actions.
While the Harry Potter books themselves do not explicitly state that Draco Malfoy was in love with Hermione Granger, a widely discussed fan theory known as "Dramione" explores the possibility of a romantic connection between the two characters.
J.K. Rowling's Comments on Dramione
According to reports, J.K. Rowling herself has acknowledged the "Dramione" fan theory. More significantly, it has been stated that she indicated Malfoy's secret feelings for Hermione did in fact influence his actions during pivotal moments in the series.
These moments include:
- Actions at the Malfoy Manor: During this intense scene in Harry Potter and the Deathly Hallows, Malfoy's behavior towards Hermione and the Golden Trio has been interpreted by fans, and reportedly by Rowling, as being influenced by underlying feelings.
- The Final Battle of Hogwarts: Similarly, Malfoy's actions (or inactions) during the chaotic final confrontation at Hogwarts have been seen through the lens of these secret feelings playing a role in his choices.
This perspective, reportedly from the author, suggests that while not overtly romantic in the narrative, there were indeed hidden emotions on Malfoy's part towards Hermione that impacted key events.