Yes he did!
Trump did not win the 1st Congressional district in the primary. He lost it by about 20 percent. I think he won Ryan’s home county but not the district.